libstdc++/77334 move assign RB trees of non-copyable types
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Aug 2016 13:15:12 +0000 (14:15 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 23 Aug 2016 13:15:12 +0000 (14:15 +0100)
commit5ea387db6c1eddc8a242d261ed2df1552222663c
tree7fb0c286c829219a9df5322e0b6d9dff281bfe28
parent5d1c6b3e76b52656d266ffae2a16550086e6906f
libstdc++/77334 move assign RB trees of non-copyable types

PR libstdc++/77334
* include/bits/stl_tree.h (_Rb_tree::_M_move_assign): New functions.
(_Rb_tree::operator=(_Rb_tree&&)): Dispatch to _M_move_assign.
* testsuite/23_containers/map/77334.cc: New test.

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