This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++ virtual base classes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]