|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-01-24 14:03:58
Am Donnerstag, 24. Januar 2008 14:59 schrieb Maik Beckmann:
> Hi List,
>
> The default constructor of
> template<class T, std::size_t N, class ALLOC>
> class bounded_array;
> initializes size_ with 0 rather than N
> bounded_array ():
> size_ (0) /*, data_ ()*/
> {}
>
> Are there any reason why it's not
> bounded_array ():
> size_ (N) /*, data_ ()*/
> {}
> ?
as Karl already said. The default size 0 is a design decision. You are
probably looking for
bounded_vector
bounded_matrix
their default constructor sets the size correctly.
mfg
Gunter