diff --git a/libsrc/core/exception.hpp b/libsrc/core/exception.hpp index 8615afc1..d095384b 100644 --- a/libsrc/core/exception.hpp +++ b/libsrc/core/exception.hpp @@ -100,7 +100,7 @@ namespace ngcore namespace detail { template - inline static void CheckRange(const char * s, const T& n, Tmin first, Tmax next) + inline static constexpr void CheckRange(const char * s, const T& n, Tmin first, Tmax next) { if constexpr (!IsSafe()) if (n=next) @@ -108,7 +108,7 @@ namespace ngcore } template - inline static void CheckSame(const char * s, const Ta& a, const Tb& b) + inline static constexpr void CheckSame(const char * s, const Ta& a, const Tb& b) { if constexpr (!IsSafe() || !IsSafe()) if(a != b)