Subject: Re: [boost] [Preprocessor] Can we generate token for #include programmatically ?
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-05-15 10:07:06
Joel Falcou wrote:
> Here is what I had in mind
> #define BASE foo.hpp
> It fails because it seems we can't paste stuff ending with / ...
OK, found a solution that works on gcc 4.3 ... not sure why :
#define SLASH() /
#define BASE nt2/support/numeric/functions
#include BOOST_PP_STRINGIZE(BASE SLASH()abs.hpp)
this actually works for whatever reason ... Can anyone see if this ugly
hack works on VC or other compilers.
If yes and if ti's actually something standard accepts, maybe it can be
nice to have a generalized version of this in Boost.Preprocessor
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk