Ticket #8118 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

stable_vector::back() returns reference to incorrect value

Reported by: alastair@… Owned by: igaztanaga
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.


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

Change History

Changed 4 years ago by alastair@…

comment:1 Changed 4 years ago by igaztanaga

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 4 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

(In [83044]) Fixes #8118


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.