周星驰 · 2007-02-16 03:20:04 · 阅读: 344 噢,是只能改代码了,这个的确只能下for vc8的了,c++标准里好像是不能用模版类做模版参数,我以前写的一些代码也有这个问题,比如有些我直接这样改的。 class YDummy; template< typename T > struct Y : public X<YDummy> { // try the following line instead // struct Y : public X<Y<T> > { void f(Y) {} };