2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00
[SVN r14022]
This commit is contained in:
Dave Abrahams
2002-05-23 16:17:53 +00:00
parent 00b27c20da
commit aa2b0090d3

View File

@@ -105,7 +105,7 @@ using namespace boost::python;
BOOST_PYTHON_MODULE_INIT(my_module)
{
module("my_module")
.def("make_foo", make_foo)
.def("make_foo", make_foo, return_value_policy<manage_new_object>)
.add(
class_<Foo>()
.def("get_x", &Foo::get_x)