@@ -158,17 +158,25 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
158158 .def (" barfoo" , (object (*)(int , char , std::string, double ))0 , bar_stubs ())
159159 ;
160160
161- class_<Y>(" Y" , init<>( " doc of Y init " )) // this should work
161+ class_<Y>(" Y" , no_init)
162162 .def (" get_state" , &Y::get_state)
163163 ;
164164
165165 class_<X>(" X" )
166166
167- .def (init<int , optional<char , std::string, double > >(" doc of init" ))
168- .def (init<std::string, bool >()[default_call_policies ()]) // what's a good policy here?
167+ # if (!defined(BOOST_INTEL_CXX_VERSION) || BOOST_INTEL_CXX_VERSION > 600)
168+ .def (init<int , optional<char , std::string, double > >())
169+ .def (init<std::string, bool >())
170+ # else
171+ .def_init (args<int >())
172+ .def_init (args<int , char >())
173+ .def_init (args<int , char , std::string>())
174+ .def_init (args<int , char , std::string, double >())
175+ .def_init (args<std::string, bool >())
176+ # endif
169177 .def (" get_state" , &X::get_state)
170178 .def (" bar" , &X::bar, X_bar_stubs ())
171- .def (" bar2" , &X::bar2, X_bar_stubs2 (" doc of X::bar2 " )[ return_internal_reference<>()] )
179+ .def (" bar2" , &X::bar2, X_bar_stubs2 (), return_internal_reference<>())
172180 .def (" foo" , (object (X::*)(std::string, bool ) const )0 , X_foo_2_stubs ())
173181 .def (" foo" , (object (X::*)(int , bool ) const )0 , X_foo_2_stubs ())
174182 .def (" foo" , (object (X::*)(list, list, bool ) const )0 , X_foo_3_stubs ())
0 commit comments