Skip to content

Commit

Permalink
Fix std::bind2nd is deprecated: use 'std::bind' instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 24, 2024
1 parent e54ecfd commit e8e99f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parpeamici/amiciSimulationRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ AmiciSimulationRunner::queueSimulation(

// TODO: must ignore 2nd argument for SimulationRunnerSimple
if (callback_job_finished_)
d->callbackJobFinished = std::bind2nd(callback_job_finished_, jobIdx);
d->callbackJobFinished = std::bind(callback_job_finished_, std::placeholders::_1, jobIdx);

loadBalancer->queueJob(d);
}
Expand Down

0 comments on commit e8e99f5

Please sign in to comment.