From 1a88f79a8937410112844b90aaf6e464fb8bbd5f Mon Sep 17 00:00:00 2001 From: Eisenwave Date: Mon, 31 Aug 2026 07:15:28 +0200 Subject: [PATCH] Add P4052 --- features_cpp26.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/features_cpp26.yaml b/features_cpp26.yaml index ab22154..3e32182 100644 --- a/features_cpp26.yaml +++ b/features_cpp26.yaml @@ -397,7 +397,7 @@ features: - Xcode 16.3 - desc: "Saturation arithmetic" - paper: P0543 + paper: [P0543, P4052] summary: "Arithmetic operations that clamp to min/max instead of overflowing." content: saturation-arithmetic.md lib: true @@ -408,6 +408,10 @@ features: ftm: - name: __cpp_lib_saturation_arithmetic value: 202311L + desc: "`std::add_sat()`, ..., `std::saturate_cast()`" + - name: __cpp_lib_saturation_arithmetic + value: 202603L + desc: "Rename to `std::saturating_add()`, ..., `std::saturating_cast()`" keywords: ["math"] - desc: "Freestanding library: Partial Classes"