I wonder if any one can help on this. I am trying to do a simple template class like this:
template<typename T1,typename T2>
class myClass
{
T1 fun(T2 arg);
}
Normally I can create an object of the class by
myClass<double,double> a;
I want to know if there is any way that I can do the same by this?
myClass<double(double)> a;
Many thanks in advance!
Jenny
double(x) calls the constructor doesn't it?