* include/profile/iterator_tracker.h (operator++): Fix returning
dangling reference.
(operator--): Likewise.
From-SVN: r193323
+2012-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ * include/profile/iterator_tracker.h (operator++): Fix returning
+ dangling reference.
+ (operator--): Likewise.
+
2012-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* include/debug/array (_GLIBCXX_THROW_OR_ABORT): Move...
return *this;
}
- __iterator_tracker&
+ __iterator_tracker
operator++(int)
{
_M_ds->_M_profile_iterate();
return *this;
}
- __iterator_tracker&
+ __iterator_tracker
operator--(int)
{
_M_ds->_M_profile_iterate(1);