Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-06 14:09:43


From: <rwgk_at_[hidden]>
> The template class boost:array (array.hpp) does not
> include constructors. However, I believe that it would
> be useful to provide a constructor like:
>
> array(const T& value) { assign(value); }
>
> Then we would also need a default constructor:
>
> array() {}
>
> Are there possible side-effects when adding these
> constructors that I do not know about? If not, could
> these be added?

Adding constructors to boost::array would break the aggregate initialization
syntax.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk