diff --git a/src/util/math.h b/src/util/math.h index 673eda4cb6fe..ea9f5768bde4 100644 --- a/src/util/math.h +++ b/src/util/math.h @@ -34,7 +34,7 @@ constexpr T math_clamp(T value, T min, T max) { // to manually convert so they are aware of the conversion. template // since we also want to this to work on size_t and ptrdiff_t, is_integer would be too strict. -requires std::is_arithmetic_v && !std::is_floating_point_v constexpr bool even(T value) { +requires(std::is_arithmetic_v && !std::is_floating_point_v) constexpr bool even(T value) { return value % 2 == 0; }