diff --git a/types.hpp b/types.hpp index 29cc7587..ad2c0604 100644 --- a/types.hpp +++ b/types.hpp @@ -28,7 +28,7 @@ /// Returns the number of elements of a statically allocated array template -size_t elems(T (&)[N]) +constexpr size_t elems(T (&)[N]) { return N; }