我知道 boost MPL 列表或向量的最大长度是半可定义的,但是在大约 30 个元素之后,编译器讨厌我。Loki 序列可以有多少个元素,用户可以定义吗?
问问题
122 次
1 回答
1
该实现显示了 18 个隐藏模板参数,所以这应该是上限
template
<
typename T1 = NullType, typename T2 = NullType, typename T3 = NullType,
typename T4 = NullType, typename T5 = NullType, typename T6 = NullType,
typename T7 = NullType, typename T8 = NullType, typename T9 = NullType,
typename T10 = NullType, typename T11 = NullType, typename T12 = NullType,
typename T13 = NullType, typename T14 = NullType, typename T15 = NullType,
typename T16 = NullType, typename T17 = NullType, typename T18 = NullType
>
struct MakeTypelist { /* stuff */ };
于 2013-01-22T08:27:02.167 回答