Make elems function constexpr

This commit is contained in:
Danny Robson 2013-09-20 17:33:25 +10:00
parent 5bcc35612c
commit b1e5c5c309

View File

@ -28,7 +28,7 @@
/// Returns the number of elements of a statically allocated array
template <typename T, size_t N>
size_t elems(T (&)[N])
constexpr size_t elems(T (&)[N])
{ return N; }