$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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))