From 1816792cd3f860888dee610b2d92f720410b1464 Mon Sep 17 00:00:00 2001 From: Guillaume PIERRE Date: Fri, 17 Jan 2025 15:52:31 +0100 Subject: [PATCH] Data for new modeler (4.1) : avoid use of std::format(..) --- src/solver/modeler/dataSeries/scenarioGroupRepo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/solver/modeler/dataSeries/scenarioGroupRepo.cpp b/src/solver/modeler/dataSeries/scenarioGroupRepo.cpp index 77a1a9c05e..12055365b0 100644 --- a/src/solver/modeler/dataSeries/scenarioGroupRepo.cpp +++ b/src/solver/modeler/dataSeries/scenarioGroupRepo.cpp @@ -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); }