31 Mar
2005
31 Mar
'05
2:58 p.m.
Hi, I want to express a "string" value at compile time. I am assuming that I have to go with mpl::vector<char> and then convert it at runtime to its string format. I also have tried using struct TestString { static const char* getName() { return "TestStringName"; } }; and then have the user specify TestString and then I write my other code to call getName() on the type at runtime. Are these two choices the best I can hope for with regard to compile- time "string" values? Regards, Bruce