ambiguous overload ?
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed Jul 5 13:48:00 GMT 2000
> 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
More information about the Gcc
mailing list