OSDN Git Service

2011-04-15 Daniel Krugler <daniel.kruegler@googlemail.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Apr 2011 00:55:43 +0000 (00:55 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Apr 2011 00:55:43 +0000 (00:55 +0000)
commitad0829c153dce6d3a27ac581d6f46f2804c31dd1
tree1c35995374e64e9385bcb00f7a32c670d739ce97
parent4e81a9f33d5f19ce608e03fc28919f9705baa739
2011-04-15  Daniel Krugler  <daniel.kruegler@googlemail.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48635
* include/bits/unique_ptr.h (unique_ptr<>::operator=(unique_ptr&&),
unique_ptr<>::operator=(unique_ptr<>&&),
unique_ptr<_Tp[],>::operator=(unique_ptr&&),
unique_ptr<_Tp[],>::operator=(unique_ptr<>&&)): Forward the deleter
instead of moving it.
* testsuite/20_util/unique_ptr/assign/48635.cc: New.

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