
28 Jan
2004
28 Jan
'04
5:40 p.m.
"Gennaro Prota" <gennaro_prota@yahoo.com> wrote
Having a look to some old list messages I've seen there has been some discussion about discovering the number of elements of an array in compile-time. Sorry if I have simply misunderstood something here (I'm rapidly catching up with old threads), but isn't this enough?
Similar technique is used in container_traits library (written by Thorsten Ottosen). Look for size_type.hpp, in sandbox or Files section. Use: n = sizeof(sizer(an_array)) /Pavel