[Boost-bugs] [Boost C++ Libraries] #3230: coordinate_vector::set_filled() has a bug

Subject: [Boost-bugs] [Boost C++ Libraries] #3230: coordinate_vector::set_filled() has a bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-29 08:04:00


#3230: coordinate_vector::set_filled() has a bug
------------------------------+---------------------------------------------
 Reporter: Makoto Yamashita | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: None
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 I have found a small bug as follow.

 FILE:: boost_1_39_0/boost/numeric/ublas/vector_sparse.hpp
 FUNCTION:: coordinate_vector::set_filled()

 Line 1478 to 1483
 ORIGINAL::
        void set_filled (const typename index_array_type::size_type
 &sorted, const typename index_array_type::size_type &filled) {
             sorted_filled_ = sorted;
             filled_ = filled;
             storage_invariants ();
             return filled_;
         }
 MODIFIED:: (Last return should be comment out)
        void set_filled (const typename index_array_type::size_type
 &sorted, const typename index_array_type::size_type &filled) {
             sorted_filled_ = sorted;
             filled_ = filled;
             storage_invariants ();
             // return filled_;
         }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3230>
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:50:00 UTC