|
Boost : |
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-05-15 04:27:01
> That's more or less what I did in the Sandbox version, but Hervé
> Brönnimann's solution looks more elegant maybe?
Yep that's exactly what I was just answering :-) It's much smarter.
I'll be off until sunday evening unfortunately, but since I don't have
trunk access I wouldn't be of much help I guess. I can test
performances on my computer when I come back though (I remember the
fact to add or remove a specialization could have big effects on perfs
for some exponents).
BTW, with this implementation we should be able to remove the
specialization in <2>, I remember it was there only to avoid a
compile-time infinite loop due to the explicit call to
positive_power<2>.
Bruno
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk