Boost logo

Boost :

From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-05-22 18:17:00


> I think that you'll need a specialization for positive_power<1> *and*
> positive_power<2> with this. In fact, both of these otherwise generate a 4-
> deep infinitely-recursive function call at runtime. Starting at
> positive_power<2>:
> positive_power<2>::result
> even_positive_power<2>::result
> positive_power<1>::result
> odd_positive_power<1>::result
> positive_power<2>::result

Actually I had those specializations in my code but didn't put them in
the mail since their presence is almost obvious now (or, at least; I
try at each new implementation to remove each of them and see the
effect). I will put all them I my next mails to be explicit.


Boost list run by bdawes at, gregod at, cpdaniel at, john at