unique_ptr.h: Use static_assert in constexpr constructors.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Wed, 10 Nov 2010 10:09:03 +0000 (10:09 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 10 Nov 2010 10:09:03 +0000 (10:09 +0000)
commitef40b371064e5a1e26e26b3885ee0e0a5cb64b56
tree00ceb29ad8f74f8ede11d4f21ca49dd9b720de88
parentc6dfaad54e66c3923075b7a0471e2ed1880b4ee0
unique_ptr.h: Use static_assert in constexpr constructors.

2010-11-10  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/bits/unique_ptr.h: Use static_assert in constexpr
constructors.
* testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Remove xfails.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
line number.

From-SVN: r166525
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc
libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc