Fred
2011-07-15 23:32:24 UTC
Basically, I have a class with a whole bunch of constant string literals that I need to declare. Since I can only declare const integral values in a class (where the prototypes go), I'm not sure where I should declare the strings. They can either be const std::string or const char*, I don't really care.
I know I can do something like this in my class.
const char* example() {return "123";};
However, this doesn't seem very good.
They way I have them now, they are declared as global constants.
Anyone know what I should do?
Thanks.