template 类的定义和实现必须放在一个文件.
或者在使用时同时包含.h和.cpp文件。
template <class T>
class AA
{
void fun(T& t);
}
template <class T>
void AA<T>::fun(T& t)
{
}
template 类的定义和实现必须放在一个文件.
或者在使用时同时包含.h和.cpp文件。
template <class T>
class AA
{
void fun(T& t);
}
template <class T>
void AA<T>::fun(T& t)
{
}