mcpp index

ZheFeng7110.boost

import

Boost as C++23 named modules — import boost.<lib>; or the umbrella import boost;

import boost.optional;

模块名取自上游清单自己的 description。

mcpp add ZheFeng7110.boost@1.92.0.0.0.0

用法

来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。

// 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 · 项目 tests/examples/boost-module

构建 · 上游清单

modules
boost.optional
targets
boost (lib)
manifest version
1.92.0.0.0.0
来源
https://raw.githubusercontent.com/ZheFeng7110/boost-module/v1.92.0.0.0.0/mcpp.toml

版本

版本平台 镜像sha256
1.92.0.0.0.0 最新 LinuxWindowsmacOS CN GLOBAL c500ee0914d6…
1.91.0.0.1.0 LinuxWindowsmacOS CN GLOBAL 63a9aae63140…