Opened 5 years ago

Closed 5 years ago

#8118 closed Bugs (fixed)

stable_vector::back() returns reference to incorrect value

Reported by: alastair@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.52.0 Severity: Regression
Keywords: Cc:


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)

stable_vector_bug.cpp (282 bytes) - added by alastair@… 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by alastair@…

Attachment: stable_vector_bug.cpp added

comment:1 Changed 5 years ago by Ion Gaztañaga

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().

comment:2 Changed 5 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

(In [83044]) Fixes #8118

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.