下面的代码不能用VC++ 2013 CTP编译。为什么最简单的模板模板不能编译?
template <template <class> A, class B>
void f(A<B>)
{}
输出如下:
error C2988: unrecognizable template declaration/definition
error C2059: syntax error : '<L_TEMPLATEDECL>'
error C2065: 'A' : undeclared identifier
error C2065: 'B' : undeclared identifier
error C2988: unrecognizable template declaration/definition
error C2059: syntax error : ')'
是。这正是我想要的。谢谢。 – xmllmx