]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/48635 (again)
authorDaniel Krugler <daniel.kruegler@googlemail.com>
Sun, 17 Apr 2011 21:46:11 +0000 (21:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 17 Apr 2011 21:46:11 +0000 (21:46 +0000)
commitda8111a0248fd0b945177d345afbb2c6cbd75f3f
treeb69d0fe142f92d1da39b3f40ac7cf5157ce87b2e
parente54170f4fdead56ae950f57886af5f48c202eb83
PR libstdc++/48635 (again)

2011-04-17  Daniel Krugler  <daniel.kruegler@googlemail.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48635 (again)
* include/bits/unique_ptr.h (unique_ptr<>::unique_ptr(unique_ptr<>&&),
unique_ptr<_Tp[]>::unique_ptr(unique_ptr<>&&),
unique_ptr<>::operator=(unique_ptr<>&&),
unique_ptr<_Tp[]>::operator=(unique_ptr<>&&)): Use forward<_Ep>, not
forward<_Dp>, to forward the deleter.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: New.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r172619
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc [new file with mode: 0644]