Hi Daniel,

Bjoern Milcke schrieb:
Hi,

on Solaris I get a warning in this situation:

class A
{
private:
  foo( int );
};

class B : public A
{
private:
  foo();  // <- warning: hidden A::foo( int )
};

This appears strange to me, how can I hide a private function of the base class, it should be hidden anyway. Is this a false alarm of the compiler, or did I miss something?

I have had the same problem. After asking around there seems to be no other solution than to rename one function, to make all compilers happy.

Thanks, I did that. As the methods have different signatures they, not surprisingly, have also slightly different purposes, so renaming is not the worst thing to do in that situation, anyway. (And foo is not very clear, too ;-) )

-Bjoern

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to