Opened 10 years ago
Closed 10 years ago
#8118 closed Bugs (fixed)
stable_vector::back() returns reference to incorrect value
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.52.0 | Severity: | Regression |
Keywords: | Cc: |
Description
Test case enclosed. The assert goes off because the value returned from last() is 253, when 255 is expected.
Workaround to use *v.rbegin() works fine.
Bug is verified in 1.52.0 and 1.53.0.
Attachments (1)
Change History (3)
by , 10 years ago
Attachment: | stable_vector_bug.cpp added |
---|
comment:1 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
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().