fix template method that nobody calls. (#15584)
authorSergey Andreenko <seandree@microsoft.com>
Wed, 20 Dec 2017 23:09:22 +0000 (15:09 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2017 23:09:22 +0000 (15:09 -0800)
src/jit/jitstd/unordered_map.h

index 05e97f4..ff1ad87 100644 (file)
@@ -147,7 +147,7 @@ unordered_map<Key, Value, Hash, Pred, Alloc>& unordered_map<Key, Value, Hash, Pr
 template<typename Key, typename Value, typename Hash, typename Pred, typename Alloc>
 Value& unordered_map<Key, Value, Hash, Pred, Alloc>::operator[](const Key& key)
 {
-    iterator<Key, Value> iter = base_type::find(key, this->key_eq());
+    typename unordered_map<Key, Value, Hash, Pred, Alloc>::iterator iter = base_type::find(key, this->key_eq());
     if (iter == this->end())
     {
         iter = base_type::insert(jitstd::pair<const Key, mapped_type>(key, mapped_type())).first;
@@ -158,7 +158,7 @@ Value& unordered_map<Key, Value, Hash, Pred, Alloc>::operator[](const Key& key)
 template<typename Key, typename Value, typename Hash, typename Pred, typename Alloc>
 Value& unordered_map<Key, Value, Hash, Pred, Alloc>::operator[](key_type&& key)
 {
-    iterator<Key, Value> iter = base_type::find(key, this->key_eq());
+    typename unordered_map<Key, Value, Hash, Pred, Alloc>::iterator iter = base_type::find(key, this->key_eq());
     if (iter == this->end())
     {
         iter = base_type::insert(jitstd::pair<const Key, mapped_type>(key, mapped_type())).first;