File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,6 @@ namespace pointer_union_detail {
3838 return std::min<int >({PointerLikeTypeTraits<Ts>::NumLowBitsAvailable...});
3939 }
4040
41- // / Find the first type in a list of types.
42- template <typename T, typename ...> struct GetFirstType {
43- using type = T;
44- };
45-
4641 // / Provide PointerLikeTypeTraits for void* that is used by PointerUnion
4742 // / for the template arguments.
4843 template <typename ...PTs> class PointerUnionUIntTraits {
@@ -264,8 +259,7 @@ struct PointerLikeTypeTraits<PointerUnion<PTs...>> {
264259// Teach DenseMap how to use PointerUnions as keys.
265260template <typename ...PTs> struct DenseMapInfo <PointerUnion<PTs...>> {
266261 using Union = PointerUnion<PTs...>;
267- using FirstInfo =
268- DenseMapInfo<typename pointer_union_detail::GetFirstType<PTs...>::type>;
262+ using FirstInfo = DenseMapInfo<TypeAtIndex<0 , PTs...>>;
269263
270264 static inline Union getEmptyKey () { return Union (FirstInfo::getEmptyKey ()); }
271265
You can’t perform that action at this time.
0 commit comments