Return value policy bug correction (for readFromFile static method)

This commit is contained in:
Damien Dupuis 2010-07-13 13:03:59 +00:00
parent 34720e3844
commit 546cb9548d
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ BOOST_PYTHON_MODULE(pyDTR) {
.def("addARule" , &Techno::addARule, return_value_policy<reference_existing_object>())
// others
.def("readFromFile", &Techno::readFromFile, return_value_policy<manage_new_object>())
.def("readFromFile", &Techno::readFromFile, return_value_policy<reference_new_object>())
.staticmethod("readFromFile")
.def("writeToFile" , &Techno::writeToFile)
;