Boost C++ Libraries: Ticket #3230: coordinate_vector::set_filled() has a bug https://svn.boost.org/trac10/ticket/3230 <p> I have found a small bug as follow. </p> <p> FILE:: boost_1_39_0/boost/numeric/ublas/vector_sparse.hpp FUNCTION:: coordinate_vector::set_filled() </p> <p> Line 1478 to 1483 ORIGINAL:: </p> <blockquote> <p> void set_filled (const typename index_array_type::size_type &amp;sorted, const typename index_array_type::size_type &amp;filled) { </p> <blockquote> <p> sorted_filled_ = sorted; filled_ = filled; storage_invariants (); return filled_; </p> </blockquote> <p> } </p> </blockquote> <p> MODIFIED:: (Last return should be comment out) </p> <blockquote> <p> void set_filled (const typename index_array_type::size_type &amp;sorted, const typename index_array_type::size_type &amp;filled) { </p> <blockquote> <p> sorted_filled_ = sorted; filled_ = filled; storage_invariants (); <em> return filled_; </em></p> </blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3230 Trac 1.4.3 Steven Watanabe Mon, 29 Jun 2009 15:10:54 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3230#comment:1 https://svn.boost.org/trac10/ticket/3230#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gunter</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">uBLAS</span> </li> </ul> Ticket Gunter Mon, 05 Oct 2009 22:31:10 GMT <link>https://svn.boost.org/trac10/ticket/3230#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3230#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56611" title="see #3230: coordinate_vector::set_filled() has a bug (Incomplete) * ...">[56611]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3230" title="#3230: Bugs: coordinate_vector::set_filled() has a bug (closed: fixed)">#3230</a>: coordinate_vector::set_filled() has a bug (Incomplete) </p> <ul><li>removed wrong return statement </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Mon, 05 Oct 2009 22:32:33 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/3230#comment:3 https://svn.boost.org/trac10/ticket/3230#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">Boost 1.41.0</span> </li> </ul> Ticket Gunter Mon, 05 Oct 2009 22:37:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3230#comment:4 https://svn.boost.org/trac10/ticket/3230#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56612" title="fix #3230: (coordinate_vector::set_filled() has wrong return ...">[56612]</a>) fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3230" title="#3230: Bugs: coordinate_vector::set_filled() has a bug (closed: fixed)">#3230</a>: (coordinate_vector::set_filled() has wrong return statement) </p> <ul><li>merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/56611" title="see #3230: coordinate_vector::set_filled() has a bug (Incomplete) * ...">[56611]</a> into release </li></ul> Ticket