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-1.1 and the C++ standard


>>>>> Andi Kleen <ak@muc.de> writes:

>> Non-trivial covariant returns

> Could you expand on this one? Does this mean that the Standard somehow
> supports overloading based on return types now?

Not overloading, but overriding virtual functions can change the return
type provided that it is a pointer to a class type and can implicitly
convert to the return type of the original function.

Jason


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