I have template function
template<typename A,typename B,typename C>
C fun(A a,B b)
{
return (string)(a+b);
}
And my main is
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
auto c= fun(10,20.3);
cout<<c;
return a.exec();
}
If I execute this it says
In function int main(int, char**)
error: no matching function for call to fun(int, double)
Please let me know why I can't do this, or is this wrong?