Boost logo

Boost :

From: Johan Råde (rade_at_[hidden])
Date: 2008-05-14 13:49:32


John Maddock wrote:
> Steven Watanabe wrote:

>> return (N%2) ? base*positive_power<N-1>::result(base)

Shouldn't positive_power<N>(base) be reduced to
square(positive_power<N/2>(base)
or
base * square(positive_power<N/2>(base))
depending on N%2?

--Johan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk