diff --git a/modules/io/pymod/export_mmcif_io.cc b/modules/io/pymod/export_mmcif_io.cc index f65daf6039f97f63e1e8723fe1db8897c5b9eb7e..551103b8832d121b58fdb3e1c92cd538b916efcf 100644 --- a/modules/io/pymod/export_mmcif_io.cc +++ b/modules/io/pymod/export_mmcif_io.cc @@ -525,8 +525,10 @@ void export_mmcif_io() return_value_policy<copy_const_reference>())) .def("SetStructDetails", &MMCifInfo::SetStructDetails) .def("GetStructDetails", &MMCifInfo::GetStructDetails) - .def("SetStructRefs", &MMCifInfo::SetStructRefs) - .def("GetStructRefs", &MMCifInfo::GetStructRefs) + .def("SetStructRefs", make_function(&MMCifInfo::SetStructRefs, + return_value_policy<copy_const_reference>())) + .def("GetStructRefs", make_function(&MMCifInfo::GetStructRefs, + return_value_policy<copy_const_reference>())) .def("SetObsoleteInfo", &MMCifInfo::SetObsoleteInfo) .def("GetObsoleteInfo", &MMCifInfo::GetObsoleteInfo) .def("AddMMCifPDBChainTr", &MMCifInfo::AddMMCifPDBChainTr)