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.