This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
One thing after the other :-)Definitely should.
Here is a patch to fix this issue Paolo. The safe iterator _M_valid_range method was considering that a range with different iterators and last being a begin one is invalid which is wrong when there is a before_begin.
2012-04-12 François Dumont <fdumont@gcc.gnu.org>
* include/debug/safe_iterator.h (_BeforeBeginHelper<>::__value): Add. (_Safe_Iterator<>::_M_is_beginnest()): Add. * include/debug/safe_iterator.tcc (_Safe_Iterator<>::_M_valid_range): Use latter. * include/debug/forward_list (_BeforeBeginHelper<>::__value): Add. * testsuite/23_containers/forward_list/debug/splice_after.cc: Add check.
Tested in 4.7 branch linux x86_64.
I did this patch in the 4.7 branch because I only had this one ready and moreover I think it should be integrated in it.
Attachment:
p
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |