From 7407a6b14483d214181bd5319f072709e1a69bb7 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 4 Sep 2002 07:33:35 +0000 Subject: [PATCH] use def_init() for compilers that don't support init<... optional<...> >; with this all tru64_cxx test pass; (I know this is not testing the default argument support, but a failing test isn't very inspiring for others, and the addition shows people what the alternative is.) [SVN r15154] --- test/defaults.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/defaults.cpp b/test/defaults.cpp index 80988bd5..e7df5e2a 100644 --- a/test/defaults.cpp +++ b/test/defaults.cpp @@ -132,10 +132,13 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext) # if (!defined(__EDG_VERSION__) || __EDG_VERSION__ > 245) \ && (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600) .def(init >()) +#else + .def_init(args()) + .def_init(args()) + .def_init(args()) + .def_init(args()) #endif - - - .def("get_state", &X::get_state) + .def("get_state", &X::get_state) .def("bar", &X::bar, X_bar_stubs()) .def("foo", (object(X::*)(std::string, bool) const)0, X_foo_2_stubs()) .def("foo", (object(X::*)(int, bool) const)0, X_foo_2_stubs())