I'm trying to get my head around function template specializations and I just can't understand what am I doing wrong here.
Prototypes and error below.
Can someone explain to me what I'm doing wrong?
I get the following error from GCC:Code:// template template <typename T> T findMax(const T arr[], int n); // specializations for char** template <> char* findMax(const char* arr[], int n);
Code:error: template-id 'findMax<>' for 'char* findMax(const char**, int)' does not match any template declaration



LinkBack URL
About LinkBacks





CornedBee