iterator_tracker.h (operator++): Fix returning dangling reference.
* include/profile/iterator_tracker.h (operator++): Fix returning dangling reference. (operator--): Likewise. From-SVN: r193324
This commit is contained in:
parent
ab821b6556
commit
f9f07ad526
|
@ -1,3 +1,9 @@
|
|||
2012-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* include/profile/iterator_tracker.h (operator++): Fix returning
|
||||
dangling reference.
|
||||
(operator--): Likewise.
|
||||
|
||||
2012-11-06 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* testsuite/20_util/shared_ptr/cons/55123.cc: Remove duplicate
|
||||
|
|
|
@ -93,7 +93,7 @@ namespace __profile
|
|||
return *this;
|
||||
}
|
||||
|
||||
__iterator_tracker&
|
||||
__iterator_tracker
|
||||
operator++(int)
|
||||
{
|
||||
_M_ds->_M_profile_iterate();
|
||||
|
@ -110,7 +110,7 @@ namespace __profile
|
|||
return *this;
|
||||
}
|
||||
|
||||
__iterator_tracker&
|
||||
__iterator_tracker
|
||||
operator--(int)
|
||||
{
|
||||
_M_ds->_M_profile_iterate(1);
|
||||
|
|
Loading…
Reference in New Issue