Hi all,
Does anyone know if it is possible to write a C++ macro, which will force the compiler to construct Pascal/custom style string constants during compilation?
The basic idea is to avoid unnecessary run-time construction from C-style to custom-style string literals.
For example, when evaluating the expression {String2 = String1 + _MyMacro("Hello") + String2;}, the "Hello" literal would already be pre-compiled into the appropriate format.
Any ideas/comments would be much appreciated.