From 9c773b5387671891be6d13f64055a31de0ec68fd Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Wed, 8 Oct 2003 17:59:27 +0000 Subject: [PATCH] Add explicit algo and traits selection when no partial template specializations [SVN r20312] --- test/testnonlinear.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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()); }