Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 887988a48845d1ac3fecac138baf3ef1014d3412..07ab118459be7522b0cda203dd056f1a89715533 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -313,7 +313,7 @@ class BitFieldBase { |
static const T kMax = static_cast<T>((kOne << size) - 1); |
// Tells whether the provided value fits into the bit field. |
- static bool is_valid(T value) { |
+ static constexpr bool is_valid(T value) { |
return (static_cast<U>(value) & ~static_cast<U>(kMax)) == 0; |
} |