Make elems function constexpr
This commit is contained in:
parent
5bcc35612c
commit
b1e5c5c309
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
/// Returns the number of elements of a statically allocated array
|
/// Returns the number of elements of a statically allocated array
|
||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
size_t elems(T (&)[N])
|
constexpr size_t elems(T (&)[N])
|
||||||
{ return N; }
|
{ return N; }
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user