Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-05-25 09:57:31

Vincent Bhérer-Roy wrote:
> On 25-May-06, at 06:39, Thorsten Ottosen wrote:

>>Maybe Boost.Assign can help you:
> Ok, I was not aware that Boost.Assign works with Boost.Array sorry.
> This is good news and can help me thanks.
> However, I really prefer my solution. I think it is not to much
> invasive and it gives the user the usual construction syntax, which I
> think is something highly desirable.

it would also break code that depends on the current number of template

> It gives an array concept closer
> to the STL container concept, by making array elements always
> initialized. And this without bugging too much those who wants to
> keep the Boost.Array as an aggregate.

Maybe you should just wrap boost::array:

template< class T, unsigned N >
struct my_array : boost::array<T,N>
   // provide constructors here


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