Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 6, 2024
1 parent 99314e6 commit d7b3a28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/solver/optim-model-filler/ComponentFiller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
*/

#include <ranges>

#include <antares/solver/expressions/nodes/ExpressionsNodes.h>
#include <antares/solver/expressions/visitors/EvalVisitor.h>
#include <antares/solver/optim-model-filler/ComponentFiller.h>
Expand All @@ -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<Solver::Visitors::EvalVisitor>
evaluator = std::make_unique<Solver::Visitors::EvalVisitor>(evaluationContext_);
auto evaluator = std::make_unique<Solver::Visitors::EvalVisitor>(evaluationContext_);
for (const auto& variable: component_.getModel()->Variables() | std::views::values)
{
pb.addVariable(evaluator->dispatch(variable.LowerBound().RootNode()),
Expand Down

0 comments on commit d7b3a28

Please sign in to comment.