File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717#include < boost/python/return_value_policy.hpp>
1818#include < boost/python/to_python_converter.hpp>
1919#include < boost/python/errors.hpp>
20- #include < boost/mpl/type_list.hpp>
2120#include < string.h>
2221
2322// Declare some straightforward extension types
@@ -200,7 +199,6 @@ D take_d(D const& d) { return d; }
200199BOOST_PYTHON_MODULE_INIT (m1)
201200{
202201 using namespace boost ::python;
203- using boost::mpl::type_list;
204202 using boost::shared_ptr;
205203
206204 simple_to_python ();
@@ -280,8 +278,8 @@ BOOST_PYTHON_MODULE_INIT(m1)
280278
281279 .add (
282280 class_<complicated>(" complicated" )
283- .def_init (type_list <simple const &,int >())
284- .def_init (type_list <simple const &>())
281+ .def_init (args <simple const &,int >())
282+ .def_init (args <simple const &>())
285283 .def (" get_n" , &complicated::get_n)
286284 )
287285 ;
You can’t perform that action at this time.
0 commit comments