Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-04-07 16:58:45


Am Freitag, 6. April 2007 12:44 schrieb Neal Becker:

> I think the best compromise is simply to add this to vector.hpp:
>
> BOOST_UBLAS_INLINE
> void resize (size_type size, value_type const& init) {
> data ().resize (size, init);
> }

I agree that the current policy for initialization/construction in
resize requires updates. However, adding the above function would only
help with vector and break the idea of having a common interface of all
(dense) vectors. So we should first update the concepts (or fix
a "initialization concept") and then modify all models of that concept
at once.

mfg
Gunter