3 Feb
2010
3 Feb
'10
2:29 a.m.
----- Original Message -----
From: "Ravi"
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,