llvm.org GIT mirror llvm / e75fae5
[ADT] Remove MSVC-only "no two-phase name lookup" typename path. Now that we've dropped VS2015 support (D64326) we can use the regular codepath as VS2017+ correctly handles it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365502 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim a month ago
1 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
118118 // Lookup tests
119119 EXPECT_FALSE(this->Map.count(this->getKey()));
120120 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end());
121 #if !defined(_MSC_VER) || defined(__clang__)
122121 EXPECT_EQ(typename TypeParam::mapped_type(),
123122 this->Map.lookup(this->getKey()));
124 #else
125 // MSVC, at least old versions, cannot parse the typename to disambiguate
126 // TypeParam::mapped_type as a type. However, because MSVC doesn't implement
127 // two-phase name lookup, it also doesn't require the typename. Deal with
128 // this mutual incompatibility through specialized code.
129 EXPECT_EQ(TypeParam::mapped_type(),
130 this->Map.lookup(this->getKey()));
131 #endif
132123 }
133124
134125 // Constant map tests