Inheriting public member functions broken in gcc 3.3.2?

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

 



So I'm working with gcc on a project and we have something like the following:

class refcounter
{
public:
     void ref() { //adds a reference }
     void unref() { //removes a reference }
}

Then we have a derived class:

class BigClass : public OtherClass, public NonRefedClass
{ ... };

where OtherClass is derived from refcounter and something else....

Now the problem comes in when trying to return a handle<BigClass> (which is a class that basically is like an auto referencing pointer) from a function, and it complains that there is no ref function defined in BigClass....

Now can someone explain to me why this is broken? It was working in gcc 3.2.3 (which is what I'm having to stay at right now).

I have other problems but this one is just completely baffling me... perhaps I'm due to read Byarne's book again....

Adruab

_________________________________________________________________
Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/



[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