mirror of
https://github.com/boostorg/python.git
synced 2026-01-28 07:22:31 +00:00
Changed args<...> to init<...> and changed class_(no_init) to class_("name", no_init)
[SVN r15345]
This commit is contained in:
@@ -93,12 +93,12 @@ BOOST_PYTHON_MODULE_INIT(back_reference_ext)
|
||||
def("copy_Z", copy_Z, return_value_policy<copy_const_reference>());
|
||||
def("x_instances", &X::count);
|
||||
|
||||
class_<Y>("Y", args<int>())
|
||||
class_<Y>("Y", init<int>())
|
||||
.def("value", &Y::value)
|
||||
.def("set", &Y::set)
|
||||
;
|
||||
|
||||
class_<Z,std::auto_ptr<Z> >("Z", args<int>())
|
||||
class_<Z,std::auto_ptr<Z> >("Z", init<int>())
|
||||
.def("value", &Z::value)
|
||||
.def("set", &Z::set)
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user