bug-gplusplus
[Top][All Lists]
Advanced

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

g++ 3.0 doesn't like static const in class w/def outside class


From: David Brusowankin
Subject: g++ 3.0 doesn't like static const in class w/def outside class
Date: Mon, 09 Jul 2001 22:23:32 GMT
User-agent: Pan/0.9.6 (Unix)

Is the following a bug ? According to "Think in C++" by Bruce Eckel, it
should.

class fubar {
        static const int size;
        char array [size];
};

const int fubar::size = 100;

The following snippet *DOES* work:

class fubar {
        static const int size = 100;
        char array [size];
};


Pleaserespond via email as well as it is much easier to access my email
than the newsgroup.


Thanks for any help,

David



reply via email to

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