
22 Jan
2007
22 Jan
'07
6:59 p.m.
Hi All,
This is a newbie mpl question, and here goes:
How can evaluate integer powers using mpl? Such as,
template < unsigned Pow, class Real > Real pow( Real r )
{
return
::type number; BOOST_STATIC_ASSERT( number::value == -3*SIZE );
Thanks a lot