re PR libstdc++/48635 ([C++0x] unique_ptr<T, D&> moves the deleter instead of copying it)
authorDaniel Krugler <daniel.kruegler@googlemail.com>
Sat, 16 Apr 2011 00:55:43 +0000 (00:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 16 Apr 2011 00:55:43 +0000 (00:55 +0000)
commit2705a8d66edb092fa6e8b3131049c2d495e4ea21
tree1c35995374e64e9385bcb00f7a32c670d739ce97
parentdeb9642d054842041402b44d2062d8a5efa40ce0
re PR libstdc++/48635 ([C++0x] unique_ptr<T, D&> moves the deleter instead of copying it)

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.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r172532
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]