re PR libstdc++/56112 (cannot create unordered_map from range of types convertible...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Mon, 28 Jan 2013 23:07:35 +0000 (23:07 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 28 Jan 2013 23:07:35 +0000 (23:07 +0000)
commit0addb273c56bbb0a0947b54b2a7da07633499009
treef5124536b73826188586d631bda8a6d413ffffa1
parent5b3be7cf99e5b833c073c119be2b60c84db7ec35
re PR libstdc++/56112 (cannot create unordered_map from range of types convertible to value_type)

PR libstdc++/56112
* include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace
to construct value_type explicitly before trying to extract the key.
* testsuite/23_containers/unordered_map/cons/56112.cc: New.

From-SVN: r195520
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/testsuite/23_containers/unordered_map/cons/56112.cc [new file with mode: 0644]