This is the mail archive of the gcc@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]

Re: EGCS: pointer to member functions.


> Yup, no problem.  You can decide what to do when the pointer is
> created.  If the method is non-virtual, you can just take its address
> directly.  If not, you could take the address of an implicitly-defined
> non-virtual method that works just like a thunk.  This non-virtual
> method could be handled just like template functions, in terms of
> implicit instantiation, so I don't see a problem here.  Is there any
> flaw in my reasoning?

How do you implement contravariant assignment of pointer-to-method?

Regards,
Martin


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