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: glossary for egcs - request for contributions


>>>>> Joe Buck <jbuck@Synopsys.COM> writes:

 >> > 	typedef int (*PFDerived)(Derived&);
 >> > 	int bfunc(Base&);
 >> > 	PFDerived p = &bfunc;
 >> 
 >> > this is legal
 >> 
 >> No way!  :-)

 > Alexandre is right, I was wrong, the C++ language is wrong.  (That is,
 > they should have permitted contravariance for regular function pointers,
 > not just member function pointers).

But then how would you deal with MI?  It works for PMFs because they aren't
just pointers.

Jason


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