2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

Fix a doc bug

[SVN r15981]
This commit is contained in:
Dave Abrahams
2002-10-25 04:47:39 +00:00
parent 387e8aadc6
commit a682dd9362

View File

@@ -143,7 +143,9 @@ Singleton& get_it()
using namespace boost::python;
BOOST_PYTHON_MODULE(singleton)
{
def("get_it", get_it, reference_existing_object());
def("get_it", get_it,
return_value_policy<reference_existing_object>());
class_<Singleton>("Singleton")
.def("exchange", &Singleton::exchange)
;