I have a template function with one argument. I have to instantiate that function without calling that function means explicitly I have to instantiate.
I have this function:
template <class T> int function_name(T a) {}
I instantiated that function like this:
template int function_name<int>(int);
But I got the following errors:
error: expected primary-expression before 'template'
error: expected `;' before 'template'