From 07fb86132812d8d8cae6ce3b2dac310b91b4f26a Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 13 Dec 2023 10:23:10 +0100 Subject: [PATCH] fixup! Cleanup includes --- src/parpeoptimization/optimizationProblem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parpeoptimization/optimizationProblem.cpp b/src/parpeoptimization/optimizationProblem.cpp index d138dcb7..dae0d9e5 100644 --- a/src/parpeoptimization/optimizationProblem.cpp +++ b/src/parpeoptimization/optimizationProblem.cpp @@ -404,7 +404,7 @@ void OptimizationReporter::finished(double optimalCost, // the optimal parameters from the optimizer. since we don't know them, rather set to nan if (logger_) logger_->logmessage(loglevel::info, "cachedCost != optimalCost && parameters.empty()"); - cached_parameters_.assign(cached_parameters_.size(), NAN); + cached_parameters_.assign(cached_parameters_.size(), std::numeric_limits::quiet_NaN()); cached_cost_ = optimalCost; } // else: our cached parameters were better. use those