E
Eric
Shouldn't I be able to do this?
In file1.cpp:
extern const int aConst = 8;
= = = = = = = =
In file2.cpp
extern const int aConst;
class aClass
{
public:
char* foo[ aConst ];
};
= = = = = = = =
The compiler barfs on char* foo[ aConst } telling me that aConst isn't
a constant.
I know the above doesn't work in C but I'm pretty sure it's supposed
to work in C++.
In file1.cpp:
extern const int aConst = 8;
= = = = = = = =
In file2.cpp
extern const int aConst;
class aClass
{
public:
char* foo[ aConst ];
};
= = = = = = = =
The compiler barfs on char* foo[ aConst } telling me that aConst isn't
a constant.
I know the above doesn't work in C but I'm pretty sure it's supposed
to work in C++.