We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0337641 commit 9bc4831Copy full SHA for 9bc4831
ext/or-tools/constraint.cpp
@@ -408,7 +408,7 @@ void init_constraint(Rice::Module& m) {
408
parameters.set_num_search_workers(1);
409
410
m.Add(NewFeasibleSolutionObserver(
411
- [callback](const CpSolverResponse& r) {
+ [&callback](const CpSolverResponse& r) {
412
// TODO find a better way to do this
413
callback.call("response=", r);
414
callback.call("on_solution_callback");
0 commit comments