Skip to content

Commit

Permalink
[solver] Returned const reference in BoxQP's solve function
Browse files Browse the repository at this point in the history
  • Loading branch information
cmastalli committed Dec 6, 2023
1 parent 32a09dc commit 7a8ce9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/crocoddyl/core/solvers/box-qp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void exposeSolverBoxQP() {
":param th_grad: gradient tolerance condition (default 1e-9)\n"
":param reg: regularization (default 1e-9)"))
.def("solve", &BoxQP::solve,
bp::return_value_policy<bp::return_by_value>(),
bp::return_value_policy<bp::copy_const_reference>(),
bp::args("H", "q", "lb", "ub", "xinit"),
"Compute the solution of bound-constrained QP based on Newton "
"projection.\n\n"
Expand Down

0 comments on commit 7a8ce9b

Please sign in to comment.