|
Boost : |
From: Mathew Robertson (mathew.robertson_at_[hidden])
Date: 2004-07-14 22:39:32
Have you tried:
#define MAX ((4+1))
ie add an extra set of brackets?
Mathew
----- Original Message -----
From: <Yossi.Itzkovich_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, July 15, 2004 12:30 PM
Subject: [boost] BOOST_PP_REPEAT with internal macro problem
>
>
>
>
> Hi,
>
> BOOST_PP_REPEAT works great for me when used like:
>
> #define MAX 5
> #define CODE my_code_goes_here
> BOOST_PP_REPEAT(MAX, CODE, )
>
> But it gets confused when used like:
>
> #define MAX (4+1)
>
> Is ther a work around ?
>
> I even tried:
> #define MAX (4+1)
> const int myMax=MAX;
> BOOST_PP_REPEAT(myMax, CODE , )
>
> but still no luck.
>
> Any help ?
>
> Thanks
>
> Yossi
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk