template struct Core::static_power

Calculates base^exponent at compile time.

#include <coremath.h>

template <int64 base, int exponent>
struct static_power
{
    // fields

    static const int64 value = base* static_power <base, exponent-1>::value;
};