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.

Daniel

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

Reply via email to