|
Boost Users : |
From: Sergey Sadovnikov (flex_ferrum_at_[hidden])
Date: 2008-05-08 06:37:32
Hello, John.
Thursday, May 8, 2008 at 2:24:56 PM you wrote:
JF> Since PP_CAT in the first version expanded to BAR_MACRO_1(S), the
JF> preprocessor expanded it which invokes PP_CAT again.
JF> By putting the sequence outside of the PP_CAT macro, it just expanded
JF> to BAR_MACRO_1 -- no parenthesis -- and therefor it was not expanded
JF> inside PP_CAT macro, and we were safe.
JF> Since your own macro was not PP_CAT, there was no recursion in yours and
JF> apparently everything worked.
JF> At least I think that is what happened :)
Yes. I think so too.
John, thanks a lot for such extended explanation! You really help me.
-- Best Regards, Sergey mailto:flex_ferrum_at_[hidden]
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