2016-05-23 François Dumont <fdumont@gcc.gnu.org>
* include/debug/safe_iterator.h (_Safe_iterator<>::operator->()): Implement using underlying iterator operator ->. * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator->()): Likewise. From-SVN: r236611
This commit is contained in:
parent
d6c9a06fcf
commit
447caf82a4
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2016-05-23 François Dumont <fdumont@gcc.gnu.org>
|
||||
|
||||
* include/debug/safe_iterator.h
|
||||
(_Safe_iterator<>::operator->()): Implement using underlying iterator
|
||||
operator ->.
|
||||
* include/debug/safe_local_iterator.h
|
||||
(_Safe_local_iterator<>::operator->()): Likewise.
|
||||
|
||||
2016-05-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||
|
||||
* testsuite/experimental/memory_resource/1.cc: Add required argument
|
||||
|
|
|
@ -274,7 +274,6 @@ namespace __gnu_debug
|
|||
/**
|
||||
* @brief Iterator dereference.
|
||||
* @pre iterator is dereferenceable
|
||||
* @todo Make this correct w.r.t. iterators that return proxies
|
||||
*/
|
||||
pointer
|
||||
operator->() const _GLIBCXX_NOEXCEPT
|
||||
|
@ -282,7 +281,7 @@ namespace __gnu_debug
|
|||
_GLIBCXX_DEBUG_VERIFY(this->_M_dereferenceable(),
|
||||
_M_message(__msg_bad_deref)
|
||||
._M_iterator(*this, "this"));
|
||||
return std::__addressof(*base());
|
||||
return base().operator->();
|
||||
}
|
||||
|
||||
// ------ Input iterator requirements ------
|
||||
|
|
|
@ -236,7 +236,6 @@ namespace __gnu_debug
|
|||
/**
|
||||
* @brief Iterator dereference.
|
||||
* @pre iterator is dereferenceable
|
||||
* @todo Make this correct w.r.t. iterators that return proxies
|
||||
*/
|
||||
pointer
|
||||
operator->() const
|
||||
|
@ -244,7 +243,7 @@ namespace __gnu_debug
|
|||
_GLIBCXX_DEBUG_VERIFY(this->_M_dereferenceable(),
|
||||
_M_message(__msg_bad_deref)
|
||||
._M_iterator(*this, "this"));
|
||||
return std::__addressof(*base());
|
||||
return base().operator->();
|
||||
}
|
||||
|
||||
// ------ Input iterator requirements ------
|
||||
|
|
Loading…
Add table
Reference in a new issue