PR libstdc++/51365
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 2013 11:38:21 +0000 (11:38 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 2013 11:38:21 +0000 (11:38 +0000)
commit0336e76c3ddbef5044a8312415e252b6816da68c
treedde84f495deb32e31bc879ea489238264f8f45c7
parent042862617d98cec20c293ea104a37688240e46f2
PR libstdc++/51365
* include/bits/shared_ptr_base (_Sp_ebo_helper): Helper class to
implement EBO safely.
(_Sp_counted_base::_M_get_deleter): Add noexcept.
(_Sp_counter_ptr): Use noexcept instead of comments.
(_Sp_counted_deleter): Likewise. Use _Sp_ebo_helper.
(_Sp_counted_ptr_inplace): Likewise.
* testsuite/20_util/shared_ptr/cons/51365.cc: New.
* testsuite/20_util/shared_ptr/cons/52924.cc: Add rebind member to
custom allocator and test construction with custom allocator.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
line number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198367 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/51365.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/shared_ptr/cons/52924.cc