From 6f8e4e9f5f0d579608a7a7ff8eaf833ced63c7f5 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 4 Dec 2024 16:05:50 +0100 Subject: [PATCH] more constexpr --- libsrc/core/exception.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)