
28 Jun
2006
28 Jun
'06
1:31 p.m.
Hum, actually it might be better to do it like : template <class Arr> struct count_of { BOOST_STATIC_ASSERT(boost::is_array<Arr>::value); enum { value = sizeof(Arr)/sizeof(Arr[0]) }; }; Sorry if I missed a point, joined late in the discussion :) Philippe