36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
[Reviewed]
|
|
# ADR-0001: C++23 subset and toolchain
|
|
|
|
## Status
|
|
|
|
Adopted for proof. GCC14/Linux is the planned CI reference; local MSVC19.44, CMake3.31.6 and LLVM19.1.5 are available.
|
|
|
|
## Context
|
|
|
|
Language mode does not guarantee standard-library feature support. The kernel needs portable values and explicit errors.
|
|
|
|
## Decision
|
|
|
|
Use C++23 without extensions and compile-probe std::expected. Exclude modules, reflection and newer experimental facilities. Verify each compiler/library pair.
|
|
|
|
## Alternatives Considered
|
|
|
|
C++20 plus expected polyfill adds dependency/migration work; unrestricted latest language weakens reproducibility.
|
|
|
|
## Benefits
|
|
|
|
Modern error/value vocabulary and explicit agent-reviewable code.
|
|
|
|
## Costs
|
|
|
|
Feature probes and multiple compiler lanes.
|
|
|
|
## Risks
|
|
|
|
Toolchain drift and compiler/library mismatch; successful builds do not prove floating-point equivalence.
|
|
|
|
## Consequences
|
|
|
|
Record tool versions; fail missing features clearly. Replay-test upgrades and pin release build images before promotion. Sources: [GCC conformance](https://gcc.gnu.org/projects/cxx-status.html), [MSVC conformance](https://learn.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance).
|
|
|