Code:#include<iostream> using namespace std; template <class t,class q> t max(t a,q b) { return ((a>b)?a:b); } int main() { int x=7; double y=6; double z; z=max(x,y); cout<<z; system("Pause"); }
Error:
In function `t max(t, q) [with t = int, q = double]':
line 15 : instantiated from here..
this code worked fine in code blocks.. i do not understand the problem in dev c++ now...