From c5dfb8f6efd4424a62e7073b5bee53f155e7332c Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Mon, 17 Jul 2023 22:30:17 +0200 Subject: [PATCH] [NL] Make one overload perturbIf() static --- NumLib/NumericalDifferentiation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NumLib/NumericalDifferentiation.h b/NumLib/NumericalDifferentiation.h index dccc40f6436..1438be4ef2b 100644 --- a/NumLib/NumericalDifferentiation.h +++ b/NumLib/NumericalDifferentiation.h @@ -143,9 +143,9 @@ struct DefaultPerturbationStrategy } template <typename T> - T const& perturbIf(std::false_type, T const& value, - double const /*plus_or_minus*/, - Eigen::Index /*comp*/) const + static T const& perturbIf(std::false_type, T const& value, + double const /*plus_or_minus*/, + Eigen::Index /*comp*/) { return value; } -- GitLab