Remove unneeded clang path for elems
This commit is contained in:
parent
c8e0086ce0
commit
5ac2e6e26b
@ -27,13 +27,9 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
/// Returns the number of elements of a statically allocated array
|
/// Returns the number of elements of a statically allocated array
|
||||||
#if !defined(COMPILER_CLANG)
|
|
||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
size_t elems(T (&)[N])
|
size_t elems(T (&)[N])
|
||||||
{ return N; }
|
{ return N; }
|
||||||
#else
|
|
||||||
#define elems(x) (sizeof(x) / 0[x])
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
template <class T, class...Args>
|
template <class T, class...Args>
|
||||||
|
Loading…
Reference in New Issue
Block a user