2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Automatic class def_init(), abstract class __init__ errors

Fixed line endings
Suppressed warnings


[SVN r14828]
This commit is contained in:
Dave Abrahams
2002-08-14 06:26:33 +00:00
parent c5ee39f54b
commit 6e06ff048d
31 changed files with 1045 additions and 115 deletions

View File

@@ -93,15 +93,13 @@ BOOST_PYTHON_MODULE_INIT(back_reference_ext)
.def("copy_Z", copy_Z, return_value_policy<copy_const_reference>())
.def("x_instances", &X::count)
.add(
class_<Y>("Y")
.def_init(args<int>())
class_<Y>("Y", args<int>())
.def("value", &Y::value)
.def("set", &Y::set)
)
.add(
class_<Z,std::auto_ptr<Z> >("Z")
.def_init(args<int>())
class_<Z,std::auto_ptr<Z> >("Z", args<int>())
.def("value", &Z::value)
.def("set", &Z::set)
)