Skip to content

Commit 722036f

Browse files
committed
trivial changes for MPL v2
[SVN r13506]
1 parent 8eab74e commit 722036f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/m1.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
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; }
200199
BOOST_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
;

0 commit comments

Comments
 (0)