{"id":60164,"library":"boost-context","title":"Boost.Context","description":"Boost context module provides cooperative multitasking via coroutines and fibers.","status":"active","version":"1.90.0","language":"cpp","source_language":null,"source_url":null,"tags":["boost","coroutines","fibers","context-switching"],"install":[{"cmd":"vcpkg install boost-context","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(boost_context CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Boost::context)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"boost/context/all.hpp","correct":"#include <boost/context/all.hpp>"}],"quickstart":{"code":"#include <boost/context/fiber.hpp>\n#include <iostream>\n\nint main() {\n    boost::context::fiber f1([](boost::context::fiber&& f) {\n        std::cout << \"fiber1\" << std::endl;\n        return std::move(f);\n    });\n    f1 = std::move(f1).resume();\n    return 0;\n}","lang":"cpp","description":"Create and resume a simple fiber using Boost.Context."},"warnings":[{"fix":"Ensure your target architecture is supported (x86, ARM, etc.) and that you are using a compatible compiler.","message":"Boost.Context requires architecture-specific assembly code; may not compile on all platforms without proper toolchain support.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"search_vec":"'boost':2,12 'boost.context':1 'context':3,16 'context-switch':15 'cooper':6 'coroutin':9,13 'fiber':11,14 'modul':4 'multitask':7 'provid':5 'switch':17 'via':8","created_at":"2026-06-16T19:19:17.847843+00:00","updated_at":"2026-06-16T19:19:17.847843+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":["async"],"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}}