2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

no comment

[SVN r13231]
This commit is contained in:
Dave Abrahams
2002-03-20 07:16:06 +00:00
parent 3b8dc924c3
commit d72128107e
3 changed files with 10 additions and 6 deletions

View File

@@ -157,16 +157,15 @@ BOOST_PYTHON_DECL PyObject* to_python(unsigned char);
BOOST_PYTHON_DECL unsigned char from_python(PyObject*, boost::python::type<unsigned char>);
unsigned char from_python(PyObject*, boost::python::type<const unsigned char&>);
BOOST_PYTHON_DECL float from_python(PyObject*, boost::python::type<float>);
BOOST_PYTHON_DECL double from_python(PyObject*, boost::python::type<double>);
# ifndef BOOST_MSVC6_OR_EARLIER
PyObject* to_python(float);
float from_python(PyObject*, boost::python::type<float>);
PyObject* to_python(double);
double from_python(PyObject*, boost::python::type<double>);
# else
BOOST_PYTHON_DECL PyObject* to_python(float);
BOOST_PYTHON_DECL float from_python(PyObject*, boost::python::type<float>);
BOOST_PYTHON_DECL PyObject* to_python(double);
BOOST_PYTHON_DECL double from_python(PyObject*, boost::python::type<double>);
# endif
float from_python(PyObject*, boost::python::type<const float&>);

View File

@@ -168,6 +168,9 @@ template <class T, class A1, class A2, class A3, class A4, class A5, class A6, c
template <class T>
struct init_function
{
# ifdef BOOST_MSVC6_OR_EARLIER
# define typename
# endif
static init* create(signature0) {
return new init0<T>;
}
@@ -276,6 +279,9 @@ struct init_function
typename detail::parameter_traits<A9>::const_reference,
typename detail::parameter_traits<A10>::const_reference>;
}
#ifdef BOOST_MSVC6_OR_EARLIER
# undef typename
#endif
};
class BOOST_PYTHON_DECL init : public function

View File

@@ -11,7 +11,6 @@
#define BOOST_PYTHON_SOURCE
#include <boost/python/detail/extension_class.hpp>
#include <boost/python/detail/extension_class.hpp>
#include <boost/python/detail/call_object.hpp>
#include <boost/utility.hpp>
@@ -178,7 +177,7 @@ extension_instance::~extension_instance()
}
}
meta_class<extension_instance>* extension_meta_class()
BOOST_PYTHON_DECL meta_class<extension_instance>* extension_meta_class()
{
static meta_class<extension_instance> result;
return &result;