Move comparison object in map/set move assignment
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Aug 2016 16:57:14 +0000 (17:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 31 Aug 2016 16:57:14 +0000 (17:57 +0100)
commite46d22a82119006ef69b4ba101565014ccaa9223
treee7c5ad81577c567a67cc425591488a0f077f25c5
parent3625264fb301378f92b517f7f535bc66ccadd7b6
Move comparison object in map/set move assignment

* include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Move
comparison object.
* testsuite/23_containers/set/move_comparison.cc: New test.

From-SVN: r239897
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/testsuite/23_containers/set/move_comparison.cc [new file with mode: 0644]