
1 Jul
2011
1 Jul
'11
7:03 p.m.
On Fri, Jul 1, 2011 at 10:39 AM, Kenny Riddile <kfriddile@gmail.com> wrote: [...]
I was just trying it for fun. I already had a preprocessor macro solution, but wanted to see how feasible a pure TMP solution would be. This is fairly accurate though:
Just a quick suggestion: you can replace the x * x * ... * x's with boost::math::pow<n>(x): http://www.boost.org/libs/math/doc/sf_and_dist/html/math_toolkit/special/pow... - Jeff