Subject: [Boost-bugs] [Boost C++ Libraries] #2195: [uBlas] compressed_matrix::erase_element() segfaults
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-15 04:58:23
#2195: [uBlas] compressed_matrix::erase_element() segfaults
----------------------------------------------+-----------------------------
Reporter: Niko Vuokko <niko.vuokko_at_[hidden]> | Owner: guwi17
Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: uBLAS
Version: Boost 1.35.0 | Severity: Problem
Keywords: compressed_matrix erase_element |
----------------------------------------------+-----------------------------
The following example segfaults, system is GCC 3.4.4 on Cygwin, Boost
1.35.0.
{{{
compressed_matrix<int> m(2,2);
m(0,0) = 1;
m.erase_element(1,0);
}}}
The problem is that inside erase_element std::lower_bound oddly returns
it_begin, even though simple
{{{
while(*itt < elem2)
++itt;
}}}
returns it_begin+2.
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2195> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC