Skip to content

Commit

Permalink
used consteval in IntegralCast<>
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 4, 2024
1 parent d7a9d49 commit abbd7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/orm/utils/integralcast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Private

/*! Get integral type name as a string. */
template<std::integral T> requires (!std::is_reference_v<T>)
constexpr const char *IntegralTypeName() noexcept
consteval const char *IntegralTypeName() noexcept
{
// Sorted by most used types
if constexpr (std::is_same_v<T, quint64>)
Expand Down Expand Up @@ -172,7 +172,7 @@ namespace Private
/*! Determine whether the given value is in the T type range (min/max). */
template<IntegralNoBoolChar T, IntegralNoBoolChar V>
requires (!std::is_reference_v<T> && !std::is_reference_v<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.
Expand Down

0 comments on commit abbd7db

Please sign in to comment.