Safe way to detect overflow in exponentiation with Solidity?

Is there a "best practice" way to detect overflows in exponentiation arithmetics regarding solidity? What would be a good way to detect such overflows?

For instance for code : uint result = a ** b

Submitted January 31, 2018 at 09:02AM }
via reddit http://ift.tt/2Gy0s35

Advertisements