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/