@@ -273,7 +273,7 @@ void init_routing(Rice::Module& m) {
273273 if (o.respond_to (" left" )) {
274274 operations_research::IntExpr* left (Rice::detail::From_Ruby<operations_research::IntVar*>().convert (o.call (" left" )));
275275 operations_research::IntExpr* right (Rice::detail::From_Ruby<operations_research::IntVar*>().convert (o.call (" right" )));
276- auto op = o.call (" op" ).to_s ().str ();
276+ std::string op = o.call (" op" ).to_s ().str ();
277277 if (op == " ==" ) {
278278 constraint = self.MakeEquality (left, right);
279279 } else if (op == " <=" ) {
@@ -288,8 +288,8 @@ void init_routing(Rice::Module& m) {
288288 })
289289 .define_method (
290290 " fixed_duration_interval_var" ,
291- [](operations_research::Solver& self, operations_research::IntVar* const start_variable, int64_t duration, const std::string& name) {
292- return self.MakeFixedDurationIntervalVar (start_variable, duration, name);
291+ [](operations_research::Solver& self, const operations_research::IntVar& start_variable, int64_t duration, const std::string& name) {
292+ return self.MakeFixedDurationIntervalVar (& start_variable, duration, name);
293293 })
294294 .define_method (
295295 " cumulative" ,
@@ -432,8 +432,8 @@ void init_routing(Rice::Module& m) {
432432 })
433433 .define_method (
434434 " solve_from_assignment_with_parameters" ,
435- [](RoutingModel& self, const Assignment* assignment, const RoutingSearchParameters& search_parameters) {
436- return self.SolveFromAssignmentWithParameters (assignment, search_parameters);
435+ [](RoutingModel& self, const Assignment& assignment, const RoutingSearchParameters& search_parameters) {
436+ return self.SolveFromAssignmentWithParameters (& assignment, search_parameters);
437437 })
438438 .define_method (" compute_lower_bound" , &RoutingModel::ComputeLowerBound)
439439 .define_method (" status" ,
0 commit comments