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