Return value policy bug correction (for readFromFile static method)
This commit is contained in:
parent
34720e3844
commit
546cb9548d
|
@ -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)
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue