Relax Debug Mode assertions on operator-> for smart pointers.
commite30612d06f70326c01ea710b468e42df3e4a2845
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Sep 2015 17:17:23 +0000 (7 17:17 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Sep 2015 17:17:23 +0000 (7 17:17 +0000)
tree9a49af7dda8df248be428236f31507ef30b429f6
parentf406c93dd7f554c7409f581327fe17f11ed9b639
Relax Debug Mode assertions on operator-> for smart pointers.

* include/bits/shared_ptr_base.h (__shared_ptr::operator->): Change
_GLIBCXX_DEBUG_ASSERT to _GLIBCXX_DEBUG_PEDASSERT.
* include/bits/unique_ptr.h (unique_ptr::operator->): Likewise.
* testsuite/20_util/shared_ptr/observers/get.cc: Test operator-> on
empty shared_ptr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227524 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/shared_ptr/observers/get.cc