Closed radj307 closed 8 months ago
The
boost::multiprecision::pow
function is missing an overload for usingcpp_int
Thanks @radj307 for this observation.
There are several perspectives on this issue. Intuitively, it's not immediately clear to me if an overload for a non-integral type (in the sense of std::is_integral
) even should or should not be supported?
Cc: @jzmaddock
This was deliberately not supported: even relatively small integer exponents can blow the result up so large that you will run the machine out of memory, so yes, only native integers are supported as the exponent. powm should be supported for all arguments a cpp_int though.
The
boost::multiprecision::pow
function is missing an overload for usingcpp_int
as the base and exponent.Tested on MSVC 19.34.31947 & gcc 10 with boostmp 1.84 standalone.