id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 87,function to get the size of a array,flier,mark_rodgers,"{{{ why not add a function which can get the size of a array? just like this #include template struct SizeOfArrayHelper; template <> struct SizeOfArrayHelper { template static inline int SizeOfArray(const T& array) { BOOST_STATIC_ASSERT(boost::is_array::value); return sizeof(array) / sizeof(array[0]); } static inline int SizeOfArray(char *str) { return strlen(str); } static inline int SizeOfArray(const char *str) { return strlen(str); } }; template <> struct SizeOfArrayHelper { template static inline int SizeOfArray(const T& array) { BOOST_STATIC_ASSERT(boost::is_class::value); return array.size(); } }; template inline int SizeOfArray(const T& array) { return SizeOfArrayHelper::value>::SizeOfArr ay(array); } }}}",Feature Requests,closed,,functional,None,Showstopper,fixed,,