Relax Debug Mode assertions on operator-> for smart pointers.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 7 Sep 2015 17:17:23 +0000 (18:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 Sep 2015 17:17:23 +0000 (18:17 +0100)
commit93023f35f7d9a6ccbc6bb121fb5b95171678924b
tree9a49af7dda8df248be428236f31507ef30b429f6
parentb11e7db7139c3e231d49611b9f0415d6f1333a69
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.

From-SVN: r227524
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