uBLAS: Bug in zero_vector.

Hi. The online documentation for zero_vector<> says: zero_vector<T> Constructs a zero vector. v (size) However, line 786 of boost/numeric/ublas/vector.hpp from latest CVS reads: zero_vector (size_type size, size_type index): size_ (size) {} and there is no single size_type size argument constructor. Isn't this a bug? (looks like a cut-paste from unit_vector<>) Cheers, -David Jung.

--- In Boost-Users@y..., David Jung
Hi. The online documentation for zero_vector<> says: zero_vector<T> Constructs a zero vector. v (size)
However, line 786 of boost/numeric/ublas/vector.hpp from latest CVS reads: zero_vector (size_type size, size_type index): size_ (size) {}
and there is no single size_type size argument constructor. Isn't this a bug? (looks like a cut-paste from unit_vector<>)
Yes, it is (and it was cut & paste ;-). The bug should be fixed in CVS. Thanks for your feedback Joerg
participants (2)
-
David Jung
-
jhrwalter