Boost C++ Libraries: Ticket #8118: stable_vector::back() returns reference to incorrect value https://svn.boost.org/trac10/ticket/8118 <p> Test case enclosed. The assert goes off because the value returned from last() is 253, when 255 is expected. </p> <p> Workaround to use *v.rbegin() works fine. </p> <p> Bug is verified in 1.52.0 and 1.53.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8118 Trac 1.4.3 alastair@… Tue, 19 Feb 2013 23:55:18 GMT attachment set https://svn.boost.org/trac10/ticket/8118 https://svn.boost.org/trac10/ticket/8118 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">stable_vector_bug.cpp</span> </li> </ul> Ticket Ion Gaztañaga Wed, 20 Feb 2013 08:27:24 GMT <link>https://svn.boost.org/trac10/ticket/8118#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8118#comment:1</guid> <description> <p> Thanks for the report and the test case. It will fix it and optimize a bit size() and capacity() to speed up a bit back(). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Wed, 20 Feb 2013 08:27:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8118#comment:2 https://svn.boost.org/trac10/ticket/8118#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</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/83044" title="Fixes #8118">[83044]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8118" title="#8118: Bugs: stable_vector::back() returns reference to incorrect value (closed: fixed)">#8118</a> </p> Ticket