Message ID | 4F30365E.8020806@gmail.com |
---|---|
State | New |
Headers | show |
Index: include/debug/safe_iterator.h =================================================================== --- include/debug/safe_iterator.h (revision 183913) +++ include/debug/safe_iterator.h (working copy) @@ -380,8 +380,12 @@ bool _M_before_dereferenceable() const { - _Self __it = *this; - return __it._M_incrementable() && (++__it)._M_dereferenceable(); + if (this->_M_incrementable()) + { + _Iterator __base = base(); + return ++__base != _M_get_sequence()->_M_base().end(); + } + return false; } /// Is the iterator incrementable?