From abbd7db8f1ed6b4813bea5282394aa114b92e689 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 4 Aug 2024 18:14:39 +0200 Subject: [PATCH] used consteval in IntegralCast<> --- include/orm/utils/integralcast.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/orm/utils/integralcast.hpp b/include/orm/utils/integralcast.hpp index e3f6637e9..6efe024e2 100644 --- a/include/orm/utils/integralcast.hpp +++ b/include/orm/utils/integralcast.hpp @@ -21,7 +21,7 @@ namespace Private /*! Get integral type name as a string. */ template requires (!std::is_reference_v) - constexpr const char *IntegralTypeName() noexcept + consteval const char *IntegralTypeName() noexcept { // Sorted by most used types if constexpr (std::is_same_v) @@ -172,7 +172,7 @@ namespace Private /*! Determine whether the given value is in the T type range (min/max). */ template requires (!std::is_reference_v && !std::is_reference_v) - bool InRange(const V value) noexcept + constexpr bool InRange(const V value) noexcept { /* This method must mirror or follow steps in Usual arithmetic conversions - Stage 5 as accurate as possible.