K
Kyle
I found this in my old junk testing path...
/* get the size of the array */
template<typename T, int size>
int getsz (T a[size]) { return size;}
Seems the compiler (gcc 3.4) can not compile the code when the template
is used, it can not deduct the parameter.
Was this code supposed to work? If not, which template parameter
deduction rule does it violate?
thanks!
/* get the size of the array */
template<typename T, int size>
int getsz (T a[size]) { return size;}
Seems the compiler (gcc 3.4) can not compile the code when the template
is used, it can not deduct the parameter.
Was this code supposed to work? If not, which template parameter
deduction rule does it violate?
thanks!