Skip to content

Boost.Multiprecision: switch to unchecked integers#4777

Merged
Fedr merged 1 commit intomasterfrom
boost/unchecked_ints
Jul 1, 2025
Merged

Boost.Multiprecision: switch to unchecked integers#4777
Fedr merged 1 commit intomasterfrom
boost/unchecked_ints

Conversation

@Fedr
Copy link
Contributor

@Fedr Fedr commented Jul 1, 2025

Use not-throwing long integer types from Boost: https://www.boost.org/doc/libs/latest/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html

Motivation:

  • not all target platforms support exceptions,
  • exception-free code is expected to be faster.

The user is responsible to have all values in range.

@Fedr Fedr requested a review from Grantim July 1, 2025 11:50
@Fedr Fedr merged commit a02e373 into master Jul 1, 2025
25 of 27 checks passed
@Fedr Fedr deleted the boost/unchecked_ints branch July 1, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants