Function specialized template problem
问题 I am new to templates. I try to define specialized template for function template, but my compiler returns error. It is simple max function, written just to practice templates; here's the code: template <typename TYP1, typename TYP2> TYP1 maximum(TYP1& param1, TYP2& param2) { return (param1 > param2 ? param1 : param2); } and specialized function: template<> std::string maximum<std::string, std::string>(std::string prm1, std::string prm2) { std::cout << "Inside specialized functiion\n"; return