
15 May
2008
15 May
'08
3:40 p.m.
John Moeller <fishcorn <at> gmail.com> writes:
template <> struct positive_power<0,0> { template <typename T> static typename tools::promote_args<T>::type result(T base) { return 1; } };
In fact, you could get rid of the zero-power case of positive_power and make it a specialization of the power_if_positive template. That way you could also check for the 0^0 case, which just returns 1 right now.