This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++ virtual base classes
- To: Branko Cibej <branko dot cibej at hermes dot si>
- Subject: Re: c++ virtual base classes
- From: flatmax <flatmax at cse dot unsw dot EDU dot AU>
- Date: Thu, 8 Jul 1999 17:20:45 +1000 (EST)
- cc: egcs at egcs dot cygnus dot com
On Thu, 8 Jul 1999, Branko Cibej wrote:
> What you want is this:
>
> class topLevel {
> public:
> static VBase vb;
> };
>
> static VBase topLevel::vb;
Yep - this is how I overcame the problem before I mailed the list.
None the less, I still think static classes should be allowed either using
:
class topLevel : static public VBase {};
OR
static class VBase {};
There must be some ingrained reason for not allowing these constructs ?
Matt
__________
reverse ...
backwards needs forwards
want backwards - first go forwards
viva