Skip to content

Commit

Permalink
Use emplace back
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Feb 20, 2025
1 parent 85389ed commit 11c2bd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ bool BindingConstraintGroupRepository::timeSeriesWidthConsistentInGroups() const
for (const auto& c: constraints)
{
std::string msg = "Constraint group: " + c->group() + " name: " + c->name();
constraintsWidth.push_back({c->RHSTimeSeries().width, msg});
constraintsWidth.emplace_back(c->RHSTimeSeries().width, msg);
}
return Utils::checkAllElementsIdenticalOrOne(constraintsWidth).first;
});
Expand Down

0 comments on commit 11c2bd7

Please sign in to comment.