
15 May
2009
15 May
'09
2:07 p.m.
Joel Falcou wrote:
Here is what I had in mind
#define BASE foo.hpp #include BOOST_PP_STRINGIZE(BOOST_PP_CAT(nt2/support/numeric/functions/scalar/,BASE))
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