|
Boost : |
Subject: Re: [boost] C++11 Metaprogramming
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-04-05 05:39:10
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))
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk