Skip to content

Commit d6c6400

Browse files
committed
fix return type issue
1 parent 3be4325 commit d6c6400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/mip/diversity/lns/rins.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void rins_t<i_t, f_t>::run_rins()
141141
vars_to_fix.begin(),
142142
[lpopt = lp_opt_device.data(),
143143
pb = problem_copy->view(),
144-
incumbent = best_sol.assignment.data()] __device__(i_t var_idx) {
144+
incumbent = best_sol.assignment.data()] __device__(i_t var_idx) -> bool {
145145
return pb.integer_equal(lpopt[var_idx], incumbent[var_idx]);
146146
});
147147
vars_to_fix.resize(end - vars_to_fix.begin(), rins_handle.get_stream());
@@ -167,7 +167,7 @@ void rins_t<i_t, f_t>::run_rins()
167167
cuopt_assert(thrust::all_of(rins_handle.get_thrust_policy(),
168168
vars_to_fix.begin(),
169169
vars_to_fix.end(),
170-
[pb = problem_copy->view()] __device__(i_t var_idx) {
170+
[pb = problem_copy->view()] __device__(i_t var_idx) -> bool {
171171
return pb.is_integer_var(var_idx);
172172
}),
173173
"All variables to fix must be integer variables");

0 commit comments

Comments
 (0)