Consider the code:
...
template <typename T>
void Swap(T &,T &);
template <> void Swap<structEmployee>(structEmployee &,structEmployee &);
int main()
{
template void Swap<char>(char &,char &);
short a=10,b=20;
...
Swap(a,b);
...
...
}
It is giving me the error:
expected primary-expression before ‘template’
template void Swap<char>(char &, char &);