On 4/2/12 6:25 PM, Jeffrey Yasskin wrote:

2012-04-02   Jeffrey Yasskin<jyass...@google.com>

        * libstdc++-v3/include/bits/stl_algo.h (__stable_partition_adaptive):
         Avoid move-assigning an object to itself by explicitly testing
         for identity.
        * libstdc++-v3/testsuite/25_algorithms/stable_partition/pr52822.cc:
         Test vectors, which have a destructive self-move-assignment.
        * libstdc++-v3/testsuite/25_algorithms/stable_partition/moveable.cc 
         Test with rvalstruct, which explicitly checks self-move-assignment.

This is OK for google/gcc-4_6, if trunk review requests changes, you can backport them later.


Reply via email to