This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: whats wrong with pointer to member function


Am Mit, 2003-05-07 um 10.41 schrieb Momchil Velikov:
> >>>>> "Bhattiprolu" == Bhattiprolu Ravikumar-A18658 <ravikb@motorola.com> writes:
> 
>     Bhattiprolu> Hi Matthias,
>     Bhattiprolu>    To my knowledge, in C++ to use function pointer to a member function, 
>     Bhattiprolu> the member function has to be static member function. Try making foo as static.
> 
> No.
> 
> It's a simple operatoir precedence problem, instead of
> ``pA->*member();'' write ``(pA->*member)();'', likewise instead of
> ``a.*member();'' write ``(a.*member)()''.
> 
That's the point. Thank you!

Matthias

> ~velco
-- 
Matthias Oltmanns

Tel: 04421-1543-274
mail: Mathias.Oltmanns.Oltmanns@sysde.eads.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]