On 2/22/11 10:36 AM, Simen Kjaeraas wrote:
%u Wrote:
Well, the trouble is, pretty much all of these are invalid attributes:
- static obviously makes no sense
And here is where you're wrong. You have defined a static destructor, which is
called with module destructor as the program goes out of scope, rather than
when your struct or class is destroyed.
This is why attributes that make no sense must be an error: you don't
know if an attribute you put is being ignored by the compiler or not
(like what has just happened here).