|
Boost Users : |
Subject: Re: [Boost-users] PP: 2 to the power x macro
From: Ravi (lists_ravi_at_[hidden])
Date: 2010-02-02 16:52:08
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
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