-
- Downloads
libstdc++: Implement N3644 on _Safe_iterator<> [PR114316]
Consider range of value-initialized iterators as valid and empty. libstdc++-v3/ChangeLog: PR libstdc++/114316 * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range): First check if both iterators are value-initialized before checking if singular. * testsuite/23_containers/set/debug/114316.cc: New test case. * testsuite/23_containers/vector/debug/114316.cc: New test case.
Showing
- libstdc++-v3/include/debug/safe_iterator.tcc 12 additions, 0 deletionslibstdc++-v3/include/debug/safe_iterator.tcc
- libstdc++-v3/testsuite/23_containers/set/debug/114316.cc 16 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/set/debug/114316.cc
- libstdc++-v3/testsuite/23_containers/vector/debug/114316.cc 16 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/vector/debug/114316.cc
Loading
Please register or sign in to comment