@@ -160,7 +160,7 @@ unsigned char from_python(PyObject*, boost::python::type<const unsigned char&>);
160160BOOST_PYTHON_DECL float from_python (PyObject*, boost::python::type<float >);
161161BOOST_PYTHON_DECL double from_python (PyObject*, boost::python::type<double >);
162162
163- # ifndef BOOST_MSVC6_OR_EARLIER
163+ # if !defined(BOOST_MSVC) || BOOST_MSVC > 1300
164164PyObject* to_python (float );
165165PyObject* to_python (double );
166166# else
@@ -260,7 +260,7 @@ PyObject* from_python(PyObject*, boost::python::type<PyObject*>);
260260// #endif
261261// }} // namespace boost::python
262262
263- #if !defined(BOOST_MSVC6_OR_EARLIER )
263+ #if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING )
264264template <class T >
265265boost::shared_ptr<T> from_python (PyObject*p, boost::python::type<boost::shared_ptr<T> >)
266266{
@@ -286,7 +286,7 @@ PyObject* to_python(boost::shared_ptr<T> p)
286286// inline implementations
287287//
288288
289- #ifndef BOOST_MSVC6_OR_EARLIER
289+ #if !defined(BOOST_MSVC) || BOOST_MSVC > 1300
290290inline PyObject* to_python (double d)
291291{
292292 return PyFloat_FromDouble (d);
@@ -296,7 +296,7 @@ inline PyObject* to_python(float f)
296296{
297297 return PyFloat_FromDouble (f);
298298}
299- #endif // BOOST_MSVC6_OR_EARLIER
299+ #endif
300300
301301inline PyObject* to_python (long l)
302302{
0 commit comments