
5 Apr
2012
5 Apr
'12
9:39 a.m.
On 03/04/12 19:39, Dave Abrahams wrote:
I don't suppose one can #include a file inside a string literal somehow? ;-)
_S(" #include "metaprogram" ")
Assuming your metaprogram is a set of valid C++ tokens, you could do something like #define myprogram some code here _S(STRINGIZE(myprogram))