* Inheriting public member functions broken in gcc 3.3.2?
@ 2004-03-12 11:03 Adrian Bentley
2004-03-12 11:43 ` Eljay Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bentley @ 2004-03-12 11:03 UTC (permalink / raw)
To: gcc-help
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Inheriting public member functions broken in gcc 3.3.2?
2004-03-12 11:03 Inheriting public member functions broken in gcc 3.3.2? Adrian Bentley
@ 2004-03-12 11:43 ` Eljay Love-Jensen
0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-03-12 11:43 UTC (permalink / raw)
To: Adrian Bentley, gcc-help
Hi Adrian,
Could you supply a compilable, minimal code example that demonstrates the
problem.
Thanks,
--Eljay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-12 2:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-12 11:03 Inheriting public member functions broken in gcc 3.3.2? Adrian Bentley
2004-03-12 11:43 ` Eljay Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).