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…