#include <iostream>
using namespace std;
template <class MyType>
MyType GetMax (MyType a, MyType b, MyType c) {
return std::max(std::max(a, b), c);
}
int main () {
int a = 5, b = 6, c = 7, d;
char e [] = "1", f [] = "2", g [] = "3", h;
d=GetMax<int>(a,b,c);
cout << d << endl;
}
error: no matching function for call to 'GetMax(char [2], char [2], char [2])'
The program works fine with int but i am not sure what the problem is for char