2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Explicit qualifications help MSVC6

[SVN r12380]
This commit is contained in:
Dave Abrahams
2002-01-20 23:07:05 +00:00
parent 7926e1bc3c
commit c3a311ab85

View File

@@ -6,13 +6,13 @@
#ifndef MAKE_FUNCTION_DWA20011221_HPP
# define MAKE_FUNCTION_DWA20011221_HPP
# include <boost/mpl/size.hpp>
# include <boost/function.hpp>
# include <boost/bind.hpp>
# include <boost/python/object/function.hpp>
# include <boost/python/object/make_holder.hpp>
# include <boost/python/detail/caller.hpp>
# include <boost/python/detail/arg_tuple_size.hpp>
# include <boost/mpl/size.hpp>
# include <boost/function.hpp>
# include <boost/bind.hpp>
namespace boost { namespace python {
@@ -21,7 +21,7 @@ objects::function* make_function(F f)
{
return new objects::function(
objects::py_function(
bind<PyObject*>(detail::caller(), f, _1, _2))
::boost::bind<PyObject*>(detail::caller(), f, _1, _2))
, detail::arg_tuple_size<F>::value);
}
@@ -31,7 +31,7 @@ objects::function* make_constructor(T* = 0, ArgList* = 0, Generator* = 0)
enum { nargs = mpl::size<ArgList>::value };
return new objects::function(
objects::py_function(
bind<PyObject*>(detail::caller(),
::boost::bind<PyObject*>(detail::caller(),
objects::make_holder<nargs>
::template apply<T,Generator,ArgList>::execute
, _1, _2))