Skip to content

Commit

Permalink
Reference existing object
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR committed Sep 18, 2024
1 parent 57133c9 commit 31bdcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittest/std_pair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ BOOST_PYTHON_MODULE(std_pair) {
bp::def("std_pair_to_tuple", std_pair_to_tuple<int, double>);
bp::def("copy", copy<int, double>);
bp::def("passthrough", passthrough<int, double>,
bp::return_value_policy<bp::copy_const_reference>());
bp::return_value_policy<bp::reference_existing_object>());
}

0 comments on commit 31bdcfd

Please sign in to comment.