|
Boost Users : |
From: Peter Soetens (peter.soetens_at_[hidden])
Date: 2007-09-27 08:34:42
Hi,
Is it possible to include a different file based on the contents of a macro
using the preprocessor library ?
For example:
#define MY_HEADER_NAME "thename"
// ...
#define THE_HEADER_PATH SOME_PP_MACRO("subdir/", MY_HEADER_NAME, ".h")
#include THE_HEADER_PATH // expands to "subdir/thename.h"
Thanks in advance !
Peter
-- Peter Soetens -- FMTC -- <http://www.fmtc.be>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net