求救!!!关于模板类的问题!在线等待!!!!!!!!!!!!!!!!!!!!
template <class T>
class A
{
T a;
}
另一类文件:
#include "A.h"
template <class T>
class B
{ friend class A<T>;
A<T> b;
}
另一类文件的实现文件:(C.cpp)
#include "B.h"
void C::f(void)
{
B<int> t;
}
为什么说 B<int> t;
那有错?
而 我把它改成 B<int>* l;
就正确了?
各位大哥请帮忙!!!!!!!!!