what is the difference between 1 and 2 in follwing program?

Posted by user323422 on Stack Overflow See other posts from Stack Overflow or by user323422
Published on 2010-04-29T07:17:34Z Indexed on 2010/04/29 7:37 UTC
Read the original article Hit count: 234

Filed under:
|
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

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates