{"id":60955,"library":"safeint","title":"SafeInt","description":"SafeInt is a class library for C++ that manages integer overflows","status":"active","version":"3.0.28","language":"cpp","source_language":null,"source_url":null,"tags":["integer","safety","overflow","security"],"install":[{"cmd":"vcpkg install safeint","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(safeint CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE SafeInt::SafeInt)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"SafeInt.hpp","correct":"#include <SafeInt.hpp>"}],"quickstart":{"code":"#include \"SafeInt.hpp\"\n\nint main() {\n    SafeInt<int> a = 2147483647;\n    SafeInt<int> b = 1;\n    try {\n        SafeInt<int> c = a + b;\n    } catch (const SafeIntException& e) {\n        // overflow caught\n    }\n    return 0;\n}","lang":"cpp","description":"Use SafeInt to detect integer overflow"},"warnings":[],"env_vars":null,"search_vec":"'c':8 'class':5 'integ':11,13 'librari':6 'manag':10 'overflow':12,15 'safeint':1,2 'safeti':14 'secur':16","created_at":"2026-06-17T04:33:44.000045+00:00","updated_at":"2026-06-17T04:33:44.000045+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}