$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [phoenix] not playing nice with other libs
From: Eric Niebler (eric_at_[hidden])
Date: 2011-05-07 12:34:14
On 5/7/2011 10:22 PM, Hartmut Kaiser wrote:
> Function like macros will be copied verbatim with all of their arguments. No
> macro expansion will be done for any of the arguments in that case, even if
> the argument list contains macros which would be expanded normally.
Oh, and since I needed macro arguments to be expanded, but the macro
itself not to be, I found a simple work-around that you might want to
document.
I rewrote this:
#define FOO(X) X
to be:
#define FOO2(X) X
#define FOO FOO2
Now I can pass -NFOO -DN=1 to Wave, and FOO(N) will be partially
expanded to FOO(1). :-)
-- Eric Niebler BoostPro Computing http://www.boostpro.com