unique_ptr.h (unique_ptr<_Tp[]>::template<typename U> void reset(U)): Add as deleted...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 28 Sep 2008 15:47:45 +0000 (15:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 28 Sep 2008 15:47:45 +0000 (15:47 +0000)
commit0d5f7a16ebc7931c798d266a2b172c856ef26531
tree2e1b13331593af53f2952a7f8e50a3a09fedc285
parent58760a81d720022370380a3607548e7d48e9ea83
unique_ptr.h (unique_ptr<_Tp[]>::template<typename U> void reset(U)): Add as deleted function, per DR 821 [Ready].

2008-09-28  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/unique_ptr.h (unique_ptr<_Tp[]>::template<typename U>
void reset(U)): Add as deleted function, per DR 821 [Ready].
* include/bits/unique_ptr.h: Prefer everywhere deleted to private
member function declarations; minor formatting tweaks.
* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: New.
* testsuite/20_util/unique_ptr/assign/assign.cc: Adjust DejaGNU
directives.

From-SVN: r140737
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign.cc
libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc [new file with mode: 0644]