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: ambiguous overload ?


> I'm no expert, but I don't think the question is one of difficulty for
> the compiler, but one of what is unambiguous in all cases (which can
> get really hairy) and what promotes the coding style that Bjarne
> wanted to promote at the time?

In fact, the method case and the normal function case are the
same. For methods, there is an additional implicit argument whose
constness is declared in the end of the method signature; this
additional argument is also considered in overload resolution.

Regards,
Martin


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