Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/memilio/epidemiology/dynamic_npis.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void implement_dynamic_npis(DampingExprGroup& damping_expr_group, const std::vec
for (auto& damping_expr : damping_expr_group) {
//go from the back so indices aren't invalidated when dampings are removed
//use indices to loop instead of reverse iterators because removing invalidates the current iterator
for (auto i = size_t(0); i < damping_expr.get_dampings().size() - 1; ++i) {
for (auto i = int(0); i < int(damping_expr.get_dampings().size()) - 1; ++i) {
auto it = damping_expr.get_dampings().rbegin() + i;

//look for previous damping of the same type/level
Expand Down