ZheFeng7110.boost
importBoost as C++23 named modules — import boost.<lib>; or the umbrella import boost;
import boost.optional;
Module name taken from the upstream manifest's own description.
mcpp add ZheFeng7110.boost@1.92.0.0.0.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
// Public boost.boost module-package end-to-end assertion: consume the Boost
// named-modules wrapper by import only (no `#include <boost/...>` at all).
//
// * `import boost.optional;` — a classic header-only library
// * `import boost.json;` — a compiled library (library TU linked in)
// * `import boost.version;` — the version constants module
// * `import boost;` — the umbrella, re-exporting the active set
import std;
import boost.optional;
import boost.json;
import boost.version;
import boost;
int main() {
int failures = 0;
auto check = [&failures](bool ok, const char* what) {
if (!ok) {
std::println("FAIL: {}", what);
++failures;
}
// …
tests/examples/boost-module/tests/boost_module.cpp · project tests/examples/boost-module
Build · upstream manifest
- modules
boost.optional- targets
boost (lib)- manifest version
1.92.0.0.0.0- source
https://raw.githubusercontent.com/ZheFeng7110/boost-module/v1.92.0.0.0.0/mcpp.toml