This PR pulls out a couple of changes from #662 that can go into the library immediately, while that PR is still in draft.
Mostly fixes a couple of linter/compiler warnings and improves the handling of Boost / boost_multiprecision.
Checklist:
[x] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[x] I have made sure that all CI jobs on GitHub pass.
[x] The pull request introduces no new warnings and follows the project's style guidelines.
Description
This PR pulls out a couple of changes from #662 that can go into the library immediately, while that PR is still in draft. Mostly fixes a couple of linter/compiler warnings and improves the handling of Boost / boost_multiprecision.
Checklist: