Registry / utility / boost-numeric-conversion

boost-numeric-conversion

JSON →
library1.90.0vcpkgunverified

Boost numeric_conversion module

vcpkg install boost-numeric-conversion
INSTALL
IMPORT
SIG · BOOST-NUMERIC-CONV
B
boost-numeric-conversion
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/numeric/conversion/cast.hpp
#include <boost/numeric/conversion/cast.hpp>

Use numeric_cast for safe numeric conversions.

#include <boost/numeric/conversion/cast.hpp> #include <iostream> int main() { double d = 3.14; int i = boost::numeric_cast<int>(d); std::cout << i << std::endl; return 0; }
Debug
Known issues
gotchaHeader-only; no linking required.
fix
Just include the header; no CMake target needed.
affects: all
Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

boost-numeric-conversion — pip install boost-numeric-conversion · libregistry