egcs-2.91.66, templates and member function pointers

Christopher T. Day CTDay@lbl.gov
Sat Jan 6 10:21:00 GMT 2001


Title: egcs-2.91.66, templates and member function pointers





I'm trying to define a member function template in an untemplated class where one of the arguments to the member function template is a member function pointer to a member function of the template parameter, e.g.,

        class B { ... };
        class A {
                template< T >
                void aFunction( ( void ( T::* mfp ) ( B& ) ), B* b ) { ... }
        }


I am required to use egcs-2.91.66 which isn't buying it - I get a "parse error before ')'" on the aFunction line. I can't figure out what's wrong. What am I missing? Thanks.

Chris






More information about the Gcc mailing list