[C++0x] remove swap for rvalues - redux

Jonathan Wakely jwakely.gcc@gmail.com
Tue Jun 23 19:26:00 GMT 2009

I missed std::shared_ptr from the patch at

The attached patch fixes that, and adds some missing 'test' variables
to the testsuite.

        * include/bits/shared_ptr.h: Do not swap rvalues.
        * testsuite/20_util/owner_less/cmp.cc: Add missing test variables.
        * testsuite/20_util/shared_ptr/comparison/cmp.cc: Likewise.
        * testsuite/20_util/shared_ptr/comparison/less.cc: Likewise.
        * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
        * testsuite/20_util/tuple/swap.cc: Likewise.

tested linux/x86_64, ok for trunk?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sp-swap.patch
Type: text/x-patch
Size: 6095 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090623/33dfef78/attachment.bin>

More information about the Libstdc++ mailing list