Boost logo

Boost Users :

From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2006-08-08 14:30:44


Johan Råde wrote:

> The following might be better:
>
>
> "The array class is designed to be an aggregate and a POD type.
> Being an aggregate means that an array can be initialized with an
> initializer list as follows:
>
> boost::array<int,4> a = {{ 1, 2, 3 }};
>
> Being a POD type ensure that such an initialization is done
> statically."
>
>
> Currently the design rationale discusses the aggregate property but
> not the POD property. But both are important.
>
> This has been a long and confused thread. I think much of the
> confusion has been caused by our failure, until today (thank you
> John), to realize that were two issies involved: aggregates and POD.

Thanks. The array docs need an update as soon as I get a little time
spare to cover TR1 support as well. We should also note that array
will be a POD so long as T is a POD ;¬)

-- 
AlisdairM

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net