2 Commits

Author SHA1 Message Date
jzmaddock
c0ff9cffda Ensure checked integers are in a sane state after a throw. (#627)
Ensure checked integers are in a sane state after a throw.
Document that the value of the target operand is unspecified after a throw.
Improve testing.
Fixes https://github.com/boostorg/multiprecision/issues/626
2024-06-24 09:12:03 +01:00
jzmaddock
58b396288e Correct divide-by-zero in cpp_int modulus operations. (#625)
Correct divide-by-zero in cpp_int modulus operations.
Also added some more efficient operator overloads for the trivial case.
Fixes https://github.com/boostorg/multiprecision/issues/624
2024-06-21 17:14:54 +01:00