+ 1
Declaring local variable as a template type
I was wondering that can I declare local variable inside the main function template type instead of using int or char or other datatype?? e.g. template < class T > int main { T max, min; // some code here }
1 Answer
+ 1
No.