Registry / utility / boost-safe-numerics

boost-safe-numerics

JSON →
library1.90.0vcpkgunverified

Boost safe_numerics module provides safe integer operations that detect and prevent arithmetic errors.

vcpkg install boost-safe-numerics
INSTALL
IMPORT
SIG · BOOST-SAFE-NUMERIC
B
boost-safe-numerics
utilitycppv1.90.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boost/safe_numerics/safe_integer.hpp
#include <boost/safe_numerics/safe_integer.hpp>

Use safe integer arithmetic

#include <boost/safe_numerics/safe_integer.hpp> #include <iostream> int main() { boost::safe_numerics::safe<int> a = 100; boost::safe_numerics::safe<int> b = 200; auto c = a + b; std::cout << c << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

boost-safe-numerics — pip install boost-safe-numerics · libregistry