A
anonymous
hello,
i am attempting to initialize a constant in my .h file. it would be terrific if i
could also assign the constant, but i continue to get compile problems. this
is what i'm trying to do:
(in myfile.h)
const std::string MY_CONSTANT = "permanent value";
but my compiler (gcc version 3.2.1) tells me:
ISO C++ forbids initialization of member
any feedback is appreciated
i am attempting to initialize a constant in my .h file. it would be terrific if i
could also assign the constant, but i continue to get compile problems. this
is what i'm trying to do:
(in myfile.h)
const std::string MY_CONSTANT = "permanent value";
but my compiler (gcc version 3.2.1) tells me:
ISO C++ forbids initialization of member
any feedback is appreciated