浏览代码

Merge pull request #276 from lvxy1024/feat-TypeAt

实例化 TypeAt 类模板编译错误
ruanshudong 1 年之前
父节点
当前提交
ccc2007c14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servant/promise/type_list.h

+ 1 - 1
servant/promise/type_list.h

@@ -41,7 +41,7 @@ struct TypeAtImpl<0, TypeList<T, List...> > {
 template <> struct TypeAtImpl<0, TypeList<> > {};
 
 template <size_t N, typename... List>
-using TypeAt = typename TypeAtImpl<N, List...>::Type;
+using TypeAt = typename TypeAtImpl<N, TypeList<List...> >::Type;
 
 // index of a type in a given type list.
 template <typename T, typename List>