diff --git a/src/fintamath/numbers/RealFunctions.cpp b/src/fintamath/numbers/RealFunctions.cpp index 588ee74a1..95743fc57 100644 --- a/src/fintamath/numbers/RealFunctions.cpp +++ b/src/fintamath/numbers/RealFunctions.cpp @@ -17,9 +17,9 @@ namespace fintamath { using namespace detail; -constexpr std::string_view backendIsInfException = "Undefined backend inf"; -constexpr std::string_view backendIsNegInfException = "Undefined backend -inf"; -constexpr std::string_view backendIsNanException = "Undefined backend nan"; +static const std::string backendIsInfException = "Undefined backend inf"; +static const std::string backendIsNegInfException = "Undefined backend -inf"; +static const std::string backendIsNanException = "Undefined backend nan"; namespace {