Make elems parameters const
This commit is contained in:
parent
71fcd082aa
commit
95c6d56cf9
@ -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>
|
||||||
constexpr size_t elems(T (&)[N])
|
constexpr size_t elems(const T (&)[N])
|
||||||
{ return N; }
|
{ return N; }
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user