This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static const enums and "storage class specified for typename" errors
- To: gcc-help at gcc dot gnu dot org
- Subject: static const enums and "storage class specified for typename" errors
- From: "George R. Lee Jr." <george at topicalstorm dot com>
- Date: Thu, 04 Jan 2001 10:52:48 -0500
- Organization: Topical Storm, Inc.
I have the following code:
class A {
...
protected:
static const enum foo {...};
}
which gets a "storage class specified for typeanme" error.
Am I allowed to declare enums const and static under gcc?
(This, incidentally, conpiled under Microsoft's Visual C++ compile
without any errors.)
George Lee
george@links2go.com
Links2Go, Inc.