Boost logo

Boost Users :

From: Sergey Sadovnikov (flex_ferrum_at_[hidden])
Date: 2008-05-08 05:56:46


Hello, John.

Thursday, May 8, 2008 at 1:47:23 PM you wrote:

>> Are you missing a 1?
>> No. '1' should be added to BAR_MACRO_ after processing BOOST_PP_CAT.
>>

JF> Ok,
JF> I am no expert at preprocessor so it is easy to get confused :)
JF> Have you tried:

JF> #define FOO_MACRO(S) BOOST_PP_CAT(BAR_MACRO_, BOOST_PP_SEQ_HEAD(S))(S)

JF> That looks more straightforward to me.
Thanks a lot! It's much better! :)

-- 
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