Remove unneeded clang path for elems

This commit is contained in:
Danny Robson 2013-02-26 17:51:34 +11:00
parent c8e0086ce0
commit 5ac2e6e26b

View File

@ -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>