what is the difference between 1 and 2 in follwing program?
- by user323422
template <class T>
class ABC
{
public:void foo(T &a)
{
std::cout <<a;
}
void bar(T &b)
{
std::cout <<b;
}
};
template class ABC<char>; //#1
template void ABC<char>::foo(char &a); // #2