Modify

Ticket #8118 (closed Bugs: fixed)

Opened 14 months ago

Last modified 14 months 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:

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

stable_vector_bug.cpp Download (282 bytes) - added by alastair@… 14 months ago.

Change History

Changed 14 months ago by alastair@…

comment:1 Changed 14 months 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 14 months ago by igaztanaga

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

(In [83044]) Fixes #8118

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.