Boost logo

Boost Users :

Subject: Re: [Boost-users] PP: 2 to the power x macro
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-02-02 21:29:40


----- Original Message -----
From: "Ravi" <lists_ravi_at_[hidden]>
To: <boost-users_at_[hidden]>
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,


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