From d7b3a2839064a830edd264592e48dd16ad1d5f98 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Fri, 6 Dec 2024 14:14:31 +0100 Subject: [PATCH] Fix windows build --- src/solver/optim-model-filler/ComponentFiller.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/solver/optim-model-filler/ComponentFiller.cpp b/src/solver/optim-model-filler/ComponentFiller.cpp index 51d8b6c7e3..49a66cda11 100644 --- a/src/solver/optim-model-filler/ComponentFiller.cpp +++ b/src/solver/optim-model-filler/ComponentFiller.cpp @@ -19,6 +19,8 @@ * along with Antares_Simulator. If not, see . */ +#include + #include #include #include @@ -38,8 +40,7 @@ void ComponentFiller::addVariables(Solver::Modeler::Api::ILinearProblem& pb, Solver::Modeler::Api::LinearProblemData& data, Solver::Modeler::Api::FillContext& ctx) { - std::unique_ptr - evaluator = std::make_unique(evaluationContext_); + auto evaluator = std::make_unique(evaluationContext_); for (const auto& variable: component_.getModel()->Variables() | std::views::values) { pb.addVariable(evaluator->dispatch(variable.LowerBound().RootNode()),