Someone asked at stackoverflow : How to get size of an array using metaprogramming?
My solution:
For one dimensional arrays,
My solution:
For one dimensional arrays,
template<typename T, size_t N>
size_t size_of_array(T (&)[N])
{
return N;
}
