I looked at boost\'s mpl::string, but there doesn\'t seem to be an easy way of converting string literals to the single-quotation-integer-based format of mpl::string. What I
The short answer is no, there is no easy way. At least not using C++ alone, and at compile time. You can use scripts or some other code generator to produce mpl::string
s with the correct literals. C++0x will bring user defined literals [1], that allow an easy manipulation of literals, character by character, for example, using variadic templates.