This is the mail archive of the
mailing list for the GCC project.
Re: Is this a bug of gcc ?
On Mar 6, 2006, at 5:21 AM, Pierre Chatelier wrote:
This is ok to fix the source, but I do not understand why it is
normal behaviour that the foo() in b hides the one from a. They
have different prototypes.
That's just how C++ is designed/defined, any book on C++ should be
able to explain this in more detail. Basically, a designer of a
class is expected to think about each overload and decide if they
want members from bases classes or not and which ones they want in
the overload set. Trying to abdicate this means they just want the
ones the explicitly defined in the class to be seen and no others.