bug-gplusplus
[Top][All Lists]
Advanced

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

Re: Static class member initialization buggy?


From: Thomas Maeder
Subject: Re: Static class member initialization buggy?
Date: Tue, 11 Dec 2001 21:49:24 +0100
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.6) Gecko/20011120

Johnny Wezel wrote:

> x.h:
> ====
> class X {
>   ...
>   static short type;
> }
> 
> x.cc:
> =====
> 
> short X::type = nextType++;


How do you make sure that nextType is initialized before X::type?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]