Re: multiple inheritance abiguity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18 Jan 2006 21:22:11 -0600, Gabriel Dos Reis  wrote:
> The program is indeed in error. There are two kinds of ambiguity:
>  (1) name lookup ambiguity
>  (2) call ambiguity.
>
> Since overload resolution takes place only after name lookup, you
> can't expect overload resolution to pick C1::f, when you're already in
> trouble with (1).
>
> -- Gaby
>
Hi.

I can add that you can read further about it in
B. Stroustrup "The C++ Programming Language".
Exactly this case is explained there.

Regards,
 Dima.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux