diff options
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/debug.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index 188495a3ea8..9074dfb0738 100644 --- a/libstdc++-v3/src/debug.cc +++ b/libstdc++-v3/src/debug.cc @@ -257,11 +257,7 @@ namespace __gnu_debug _M_detach_single(_Safe_iterator_base* __it) throw () { // Remove __it from this sequence's list - if (__it->_M_prior) - __it->_M_prior->_M_next = __it->_M_next; - if (__it->_M_next) - __it->_M_next->_M_prior = __it->_M_prior; - + __it->_M_unlink(); if (_M_const_iterators == __it) _M_const_iterators = __it->_M_next; if (_M_iterators == __it) |