safe_numerics
safe_numerics copied to clipboard
Replacements to standard numeric types which throw exceptions on errors
GitHub Action is sunsetting the macOS 10.15 Actions runner. It will stop working intermittently until being completely removed by 2022-8-30: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22
**Issue description:** Boost\libs\safe_numerics failed to build due to error C2968 on MSVC. Could you please take a look? We ues https://github.com/boostorg/boost/commit/8bfc57e268c536f68d3832741bccdefad534d9d4 from Boost master branch. **Build step:** 1. git clone...
Because it would be convenient if code like the following worked generically for both regular ints and safe ints: template std::string f(I i) { using std::to_string; return to_string(i); }
Consider: #include #include using I = boost::safe_numerics::safe; struct X { I i; }; std::optional f(X x) { return x.i; } When asked to compile the above with `-Wconversion`, `g++` gives:...
Posting this as an issue at Mr. Ramey's request. It appears that there is no way to create a function which can accept a safe object with any execution policy,...
As of right now it is not clear, which headers are public and which are private. Public headers are meant for inclusion by users of the library. The only way...
The example at https://www.boost.org/doc/libs/1_77_0/libs/safe_numerics/doc/html/eliminate_runtime_penalty/3.html is aimed to demonstrate how different type promotion policies and exception policies can be combined. The description says: > As before, we define a type safe_t...
Hello. I work in the European Space Agency, and have experience with the kinds of checks done by Ada and SPARK - and since I just met "safe_numerics", I did...
Hi Robert There is small issue what cause compilation error on non gcc/msvc compilers in test_construction.cpp line 156 you create `using test_types = mp_unique
Any plans to add floating point support to safe_numerics?