Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2001-11-06 13:37:03

My favorite thing about <boost/array_traits.hpp> is that it allows me to
declare this:

    const int primes[] = { 2, 3, 5, 7 };

And then get the number of elements as:


You can't do something like that with <boost/array.hpp>. That's why I want
<boost/array_traits.hpp> to be moved out of the beta category, taken through
the formal review process, and perhaps even proposed for standardization.

I find this especially useful when dealing with legacy interfaces that take
an array and an array size to specify a list of values.

Any thoughts?

    -- Darin

Boost list run by bdawes at, gregod at, cpdaniel at, john at