PR libstdc++/82966 fix swapping of node handles
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 May 2018 14:27:54 +0000 (15:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 May 2018 14:27:54 +0000 (15:27 +0100)
commit3846b8e4b37aabba4c85d14078d041020d363fb8
treeac86e926ee8a81907d2dd9cf0ad407c6890a0eab
parentf8d9957ef899acf54c01f0289b586871c846402a
PR libstdc++/82966 fix swapping of node handles

PR libstdc++/82966
* include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
instead of type.
* testsuite/23_containers/set/modifiers/node_swap.cc: New.

From-SVN: r260226
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/node_handle.h
libstdc++-v3/testsuite/23_containers/set/modifiers/node_swap.cc [new file with mode: 0644]