
2 Feb
2010
2 Feb
'10
7:29 p.m.
----- Original Message ----- From: "Ravi" <lists_ravi@lavabit.com> To: <boost-users@lists.boost.org> Sent: Wednesday, February 03, 2010 4:52 AM Subject: Re: [Boost-users] PP: 2 to the power x macro
On Monday 01 February 2010 11:56:35 Hicham Mouline wrote:
I have written this code to return 2 to the power x.
Just a little confused reading your code; does POWER2(6) give you 64? Or are you trying to produce the sequence 1,2,4,8,16,32,64? If the former, why not simply use the left shift operator?
Regards, Ravi
I can't find this left shift operator in Boost.PP. Do you mean << ? But then how do I evaluate it in the context of the preprocessor? regards,