
4 Feb
2010
4 Feb
'10
3:49 p.m.
From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Roman Perepelitsa Sent: 04 February 2010 9:27 To: boost-users@lists.boost.org Subject: Re: [Boost-users] PP: 2 to the power x macro
How about this?
// Must expand to "int foo8;", but it does not. int BOOST_PP_CAT(foo, POWER2(3));
Roman Perepelitsa.
Exactly. Ravi, the macro expansion does not evaluate the << operator, that is done at compile-time. So Roman, what do you think of my POWER2 implementation? It is very slow (to preprocess) in an actual example I have. Can anyone see a faster implementation? Regards,