Boost logo

Boost Users :

From: Sergey Sadovnikov (flex_ferrum_at_[hidden])
Date: 2008-05-08 05:26:03


Hello, John.

Thursday, May 8, 2008 at 1:11:06 PM you wrote:

JF> Sergey wrote:
>>
>> I can't understand problem with code like this:
>>
>> #define SOME_SEQ (1)(2)(3)
>> #define BAR_MACRO_1(S) BOOST_PP_SEQ_ENUM(BOOST_PP_SEQ_TAIL(S))
>> #define FOO_MACRO(S) BOOST_PP_CAT(BAR_MACRO_, BOOST_PP_SEQ_HEAD(S) ##
JF> (S))
JF> ^
JF> Are you missing a 1?
No. '1' should be added to BAR_MACRO_ after processing BOOST_PP_CAT.

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