Skip to content

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions#8877

Merged
tkoeppe merged 1 commit intocplusplus:mainfrom
eisenwave:motions-2026-03-lwg-32
Apr 20, 2026
Merged

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions#8877
tkoeppe merged 1 commit intocplusplus:mainfrom
eisenwave:motions-2026-03-lwg-32

Conversation

@eisenwave
Copy link
Copy Markdown
Member

Fixes #8866
Fixes NB FR-026-265 (C++26 CD).

Also fixes https://github.com/cplusplus/nbballot/issues/840

@eisenwave eisenwave changed the title P4052R0 Renaming saturation arithmetic functions [2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions Mar 28, 2026
Comment thread source/support.tex
#define @\defnlibxname{cpp_lib_robust_nonmodifying_seq_ops}@ 201304L // freestanding, also in \libheader{algorithm}
#define @\defnlibxname{cpp_lib_sample}@ 201603L // freestanding, also in \libheader{algorithm}
#define @\defnlibxname{cpp_lib_saturation_arithmetic}@ 202311L // freestanding, also in \libheader{numeric}
#define @\defnlibxname{cpp_lib_saturation_arithmetic}@ 202603L // freestanding, also in \libheader{numeric}
Copy link
Copy Markdown
Contributor

@StephanTLavavej StephanTLavavej Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6738 by @tkoeppe also added __cpp_lib_freestanding_numeric for the original paper. The rationale for increasing __cpp_lib_saturation_arithmetic should apply to its freestanding counterpart, right? FYI @jwakely as you approved this PR a couple of weeks ago.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @ben-craig. IMO bumping of __cpp_lib_freestanding_meow should correspond to pure freestanding addition, so we possibly shouldn't touch them for renaming.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, leaving as is then. @StephanTLavavej Please get in touch if you think that it is critical that the freestanding macro be changed, too.

H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this pull request Apr 11, 2026
@tkoeppe tkoeppe force-pushed the motions-2026-03-lwg-32 branch from 4544752 to 2151baf Compare April 20, 2026 07:40
@tkoeppe tkoeppe merged commit a0d6dda into cplusplus:main Apr 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions

6 participants