Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#2891 closed Bugs (fixed)

BOOST_UBLAS_CHECK checking the wrong variable

Reported by: boost_bugs@… 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 Gunter, 14 years ago

Status: newassigned

comment:2 by Gunter, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [52143]) storage.hpp: fix #2891, now check new size instead of old one

comment:3 by Gunter, 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:4 by Marshall Clow, 12 years ago

(In [62925]) Typo; fixes #2891

comment:5 by Marshall Clow, 12 years ago

I fat-fingered a svn checkin comment; I was fixing #2981, not this ticket.

Note: See TracTickets for help on using tickets.