]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/51365 (cannot use final empty class in std::tuple)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 28 Apr 2013 11:38:21 +0000 (11:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 28 Apr 2013 11:38:21 +0000 (12:38 +0100)
commitfe807059aaaf1be52e81513df1e25ef476c56b7d
treedde84f495deb32e31bc879ea489238264f8f45c7
parent35eb492bcfbc6627bb5d800d0af2cfd8bf39203f
re PR libstdc++/51365 (cannot use final empty class in std::tuple)

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.

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