template < int ...Indices>
class T1 {
template <int _1, int _2>
class T2;
};
template <int ...Indices>
template <int _1>
class T1<Indices...>::T2<_1, sizeof...(Indices)> {};
//^--error: non-type template argument depends on a template parameter of the partial specialization
在 gcc 4.5+ 上编译,但在 clang 3.1 和 icc 上都没有,都抱怨sizeof...(Indices)
. 它只是后者编译器中尚未实现的功能还是某些特殊情况?
谢谢,
布特