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

MSVC6 and 7 compatibility fixes

[SVN r20779]
This commit is contained in:
Raoul Gough
2003-11-10 18:06:41 +00:00
parent 997467c29f
commit 91db6f2d50
34 changed files with 773 additions and 284 deletions

View File

@@ -30,6 +30,8 @@ unsigned int_wrapper::our_object_counter = 0;
BOOST_PYTHON_MODULE(testnonlinear)
{
namespace indexing = boost::python::indexing;
boost::python::implicitly_convertible <int, int_wrapper>();
boost::python::def ("setTrace", &int_wrapper::setTrace);
@@ -43,21 +45,12 @@ BOOST_PYTHON_MODULE(testnonlinear)
typedef std::map<std::string, int_wrapper> Container1;
typedef std::set<std::string> Container2;
#if !BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
typedef boost::python::indexing::container_suite<Container1> Suite1;
typedef boost::python::indexing::container_suite<Container2> Suite2;
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
typedef indexing::container_suite<Container1> Suite1;
typedef indexing::container_suite<Container2> Suite2;
#else
typedef boost::python::indexing::container_suite
<Container1
, boost::python::indexing::map_algorithms
<boost::python::indexing::map_traits
<Container1> > > Suite1;
typedef boost::python::indexing::container_suite
<Container2
, boost::python::indexing::set_algorithms
<boost::python::indexing::set_traits
<Container2> > > Suite2;
typedef indexing::map_suite<Container1> Suite1;
typedef indexing::set_suite<Container2> Suite2;
#endif
boost::python::class_<Container1>("Map").def (Suite1());