diff --git a/test/testnonlinear.cpp b/test/testnonlinear.cpp index 93feb6ef..1c9ca60f 100755 --- a/test/testnonlinear.cpp +++ b/test/testnonlinear.cpp @@ -51,13 +51,25 @@ BOOST_PYTHON_MODULE(testnonlinear) ; typedef std::map Container1; - - boost::python::class_("Map") - .def (boost::python::indexing::container_suite()); - typedef std::set Container2; - boost::python::class_("Set") - .def (boost::python::indexing::container_suite()); +#if !BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + typedef boost::python::indexing::container_suite Suite1; + typedef boost::python::indexing::container_suite Suite2; +#else + typedef boost::python::indexing::container_suite + > > Suite1; + typedef boost::python::indexing::container_suite + > > Suite2; +#endif + + boost::python::class_("Map").def (Suite1()); + boost::python::class_("Set").def (Suite2()); }