re PR libstdc++/82522 (std::map::insert(value_type &&) not selected)
authorFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 20 Dec 2017 21:53:25 +0000 (21:53 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 20 Dec 2017 21:53:25 +0000 (21:53 +0000)
commit1679da1571b8c6fee93b05aa65716b60ba220f93
treed1806ee37ad219b97aa71b6f8f02acbf1cc36409
parent7dd342222b25a4880d083d8fd013a901fb6f1993
re PR libstdc++/82522 (std::map::insert(value_type &&) not selected)

2017-12-20  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/82522
* include/debug/map.h (map::insert(value_type&&))
(map::insert(const_iterator, value_type&&)): Add overload for rvalues.
* include/debug/multimap.h (multimap::insert(value_type&&))
(multimap::insert(const_iterator, value_type&&)): Likewise.
* include/debug/unordered_map (unordered_map::insert(value_type&&))
(unordered_map::insert(const_iterator, value_type&&))
(unordered_multimap::insert(value_type&&))
(unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
* testsuite/23_containers/map/modifiers/insert/dr2354.cc (test02): New.
* testsuite/23_containers/multimap/modifiers/insert/dr2354.cc (test02):
New.
* testsuite/23_containers/unordered_map/insert/dr2354.cc (test02): New.
* testsuite/23_containers/unordered_multimap/insert/dr2354.cc (test02):
New.

From-SVN: r255904
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/map.h
libstdc++-v3/include/debug/multimap.h
libstdc++-v3/include/debug/unordered_map
libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc
libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc
libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc