Index: util/numeric/checked_range.h |
diff --git a/util/numeric/checked_range.h b/util/numeric/checked_range.h |
index b0f122278a0b0cde25233ff3e49333f0ac3f2bc1..df3e395fe2be334ae5615d86ff4eb3d2ee9b0046 100644 |
--- a/util/numeric/checked_range.h |
+++ b/util/numeric/checked_range.h |
@@ -30,8 +30,8 @@ template <typename ValueType, typename SizeType = ValueType> |
class CheckedRange { |
public: |
CheckedRange(ValueType base, SizeType size) { |
- COMPILE_ASSERT(!std::numeric_limits<SizeType>::is_signed, |
- SizeType_must_be_unsigned); |
+ static_assert(!std::numeric_limits<SizeType>::is_signed, |
+ "SizeType must be unsigned"); |
SetRange(base, size); |
} |