Skip to content

Commit

Permalink
Data for new modeler (4.1) : avoid use of std::format(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Jan 17, 2025
1 parent 99c2a7f commit 1816792
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/solver/modeler/dataSeries/scenarioGroupRepo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ unsigned ScenarioGroupRepository::getDataRank(std::string groupId, unsigned scen

if (!scenarioGroups_.at(groupId).contains(scenario))
{
std::string error_message = std::format("In scenario group '{}', scenario '{}' does not exist.",
groupId,
scenario);
std::string error_message = "In scenario group '" + groupId + "', scenario '"
+ std::to_string(scenario) + "' does not exist.";
throw std::invalid_argument(error_message);
}

Expand Down

0 comments on commit 1816792

Please sign in to comment.