0

Please help me to correct this code

Template<typename T> If(T==double)//this line is my error Std::cout<<"double" ;

4th May 2020, 9:07 AM
Mohammad Javad
1 Réponse
0
https://en.cppreference.com/w/cpp/language/function_template Use the example that says "can be specialized..."
4th May 2020, 11:52 AM
Fernando Pozzetti
Fernando Pozzetti - avatar