#include
using namespace std;
template void f(X a)
{
cout << "Inside f(X a)\n";
}
template void f(X a, Y b)
{
cout << "Inside f(X a, Y b)\n";
}
int main()
{
f(10); // calls f(X)
f(10, 20); // calls f(X, Y)
return 0;
}
Inside f(X a)
Inside f(X a, Y b)