]> git.ipfire.org Git - thirdparty/gcc.git/commit
shared_ptr.h (shared_ptr<>::__shared_ptr(), [...]): Add constexpr specifier.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 6 Nov 2010 00:11:57 +0000 (00:11 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 6 Nov 2010 00:11:57 +0000 (00:11 +0000)
commitbe9d3d73425dc366fe8c1456a3503d6c118618a0
tree68897208905b15c8ebef7fedfd4db48f0bbfa56e
parenta75de6923043978eb7d96d79a28ba7becea353e9
shared_ptr.h (shared_ptr<>::__shared_ptr(), [...]): Add constexpr specifier.

2010-11-05  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/shared_ptr.h (shared_ptr<>::__shared_ptr(),
shared_ptr<>::shared_ptr(nullptr_t), weak_ptr<>::weak_ptr(),
enable_shared_from_this::enable_shared_from_this()): Add constexpr
specifier.
* include/bits/shared_ptr_base.h (__shared_count::__shared_count(),
__shared_count::__shared_count(), __shared_ptr<>::__shared_ptr(),
__shared_ptr<>::__shared_ptr(nullptr_t), __weak_ptr<>::__weak_ptr(),
__enable_shared_from_this::__enable_shared_from_this()): Likewise.
* include/bits/unique_ptr.h (default_delete,
unique_ptr<>::unique_ptr(), unique_ptr<>::unique_ptr(nullptr_t)):
Likewise.
* testsuite/20_util/default_delete/cons/constexpr.cc: Do not xfail.
* testsuite/20_util/shared_ptr/cons/constexpr.cc: Remove, the test
cannot work for a non-literal type like std::shared_ptr.
* testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
* testsuite/util/testsuite_common_types.h: Add comments.
* testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
* testsuite/20_util/shared_ptr/cons/43820.cc: Adjust dg-error line
numbers.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Likewise.

From-SVN: r166386
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/default_delete/cons/constexpr.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/constexpr.cc [deleted file]
libstdc++-v3/testsuite/20_util/unique_ptr/cons/constexpr.cc [deleted file]
libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
libstdc++-v3/testsuite/20_util/weak_ptr/cons/constexpr.cc [deleted file]
libstdc++-v3/testsuite/util/testsuite_common_types.h