Remove implicit conversion from __value_type to value_type in [unordered_][multi]map. This fixes http://llvm.org/bugs/show_bug.cgi?id=16549
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
// class map
|
||||
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=16538
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=16549
|
||||
|
||||
#include <map>
|
||||
|
||||
@@ -26,4 +27,6 @@ int
|
||||
main()
|
||||
{
|
||||
std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0));
|
||||
std::pair<std::map<Key, int>::iterator, bool> result =
|
||||
std::map<Key, int>().insert(std::make_pair(Key(0), 0));
|
||||
}
|
||||
|
@@ -14,6 +14,7 @@
|
||||
// class unordered_map
|
||||
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=16538
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=16549
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -36,4 +37,6 @@ main()
|
||||
{
|
||||
std::unordered_map<Key, int>::iterator it =
|
||||
std::unordered_map<Key, int>().find(Key(0));
|
||||
std::pair<std::unordered_map<Key, int>::iterator, bool> result =
|
||||
std::unordered_map<Key, int>().insert(std::make_pair(Key(0), 0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user