debug.h (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)): Compare __x base iterator with a default initialized iterator of the same type.
2018-06-21 François Dumont <fdumont@gcc.gnu.org> * include/debug/debug.h (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)): Compare __x base iterator with a default initialized iterator of the same type. From-SVN: r261831
This commit is contained in:
parent
a788a23c33
commit
802743baca
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2018-06-21 François Dumont <fdumont@gcc.gnu.org>
|
||||||
|
|
||||||
|
* include/debug/debug.h
|
||||||
|
(_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)):
|
||||||
|
Compare __x base iterator with a default initialized iterator of the
|
||||||
|
same type.
|
||||||
|
|
||||||
2018-06-20 Jonathan Wakely <jwakely@redhat.com>
|
2018-06-20 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/70966
|
PR libstdc++/70966
|
||||||
|
|
|
@ -180,7 +180,7 @@ namespace __gnu_debug
|
||||||
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
||||||
// DR 408. Is vector<reverse_iterator<char*> > forbidden?
|
// DR 408. Is vector<reverse_iterator<char*> > forbidden?
|
||||||
_GLIBCXX_DEBUG_VERIFY(!__x._M_singular()
|
_GLIBCXX_DEBUG_VERIFY(!__x._M_singular()
|
||||||
|| __x.base() == _Iterator(),
|
|| __x.base() == _MutableIterator(),
|
||||||
_M_message(__msg_init_const_singular)
|
_M_message(__msg_init_const_singular)
|
||||||
._M_iterator(*this, "this")
|
._M_iterator(*this, "this")
|
||||||
._M_iterator(__x, "other"));
|
._M_iterator(__x, "other"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue