Date: Mon, 22 May 95 14:44:53 CDT From: m-fuerst (Michael J Fuerst) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Templates, and static ptrs to functions ************************ Problem 1 ************************ I have a template class Base2Array with a Base2Array.h and a Base2Array.cxx file. The class has a public static member compare_s, declared in Base2Array.h. (Note: Boolean is a synonym for int) template class Base2Array: public BaseArray { . . static Boolean (*compare_s)(const Type& t1, const Type& t2); . . } The Base2Array.cxx (in addition to much other stuff) contains the following: template Boolean is_data_equal (const Type& t1, const Type& t2) { return (t1 == t2); } // compare_s -- static data member of Base2Array, // pointer to operator== for Type template Boolean (*Base2Array::compare_s)(const Type&, const Type&) = is_data_equal; DJGPP complains about this list statement with the message: invalid template: 'int (*compare_s)(