Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon committed Dec 7, 2023
1 parent ccc9b40 commit 29cb617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void GenPolicy::uniformProbFromMax(std::vector<Probability<T>> &distr,

template <class T, class U>
void GenPolicy::removeProbability(std::vector<Probability<T>> &orig, U id) {
std::remove_if(
auto new_end = std::remove_if(
orig.begin(), orig.end(),
[&id](Probability<T> &elem) -> bool { return elem.getId() == id; });
orig.erase(new_end, orig.end());
Expand Down

0 comments on commit 29cb617

Please sign in to comment.