#2891 closed Bugs (fixed)
BOOST_UBLAS_CHECK checking the wrong variable
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | Boost 1.39.0 | Component: | uBLAS |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | BOOST_UBLAS_CHECK | Cc: |
Description
2 resize() member functions in
storage.h: bounded_array
call BOOST_UBLAS_CHECK with size_ (private attribute) instead of size (function input variable). This seems to have happened from a direct copy paste from the constructor above (where size_ and size have the same value at this point).
The patch is trivial (delete the 2 "_")
Thank you for the great software, Ricardo
Change History (5)
comment:1 by , 14 years ago
Status: | new → assigned |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 14 years ago
(In [52145]) ublas/expression_types.hpp: added typedef ublas_expression::self_type ublas/fwd.hpp: added default template arguments to declaration of generalized_vector_of_vector ublas/lu.hpp: added constructor from vector to permutation_matrix ublas/storage.hpp: fix #2891 ublas/detail/concepts.hpp: added documentation and some missing concept checks
ublas/traits.hpp:
added new traits classes: container_traits, matrix_traits, vector_traits they work for all ublas classes and c-arrays (T[M][N] and T[M])
ublas/functional.hpp:
added triangular type tags fix #2800 added my name to copyright message
comment:5 by , 12 years ago
I fat-fingered a svn checkin comment; I was fixing #2981, not this ticket.
(In [52143]) storage.hpp: fix #2891, now check new size instead of old one