OSDN Git Service

2010-03-02 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2010 00:40:28 +0000 (00:40 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2010 00:40:28 +0000 (00:40 +0000)
commit1a6594e54f038c78ff9b148a9affc116bdf761e2
tree0aac139b9a6251b8de6b0927da20cc16b6481b9b
parentc3d88ef3097b3a13c1a3c45aa779eed481c20548
2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/43183
* include/bits/unique_ptr.h (reset): Fix as per working paper.
(operator*, operator->, operator[], operator bool, release): Use
pointer's null value instead of 0.
* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/modifiers/43183.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157158 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign_neg.cc
libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/43183.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc