Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2833R2 Freestanding Library: inout expected span #4177

Closed
StephanTLavavej opened this issue Nov 12, 2023 · 0 comments · Fixed by #4743
Closed

P2833R2 Freestanding Library: inout expected span #4177

StephanTLavavej opened this issue Nov 12, 2023 · 0 comments · Fixed by #4743
Labels
cxx26 C++26 feature fixed Something works now, yay!

Comments

@StephanTLavavej
Copy link
Member

StephanTLavavej commented Nov 12, 2023

WG21-P2833R2 Freestanding Library: inout expected span

Feature-test macros (expected):

#define __cpp_lib_freestanding_expected 202311L
#define __cpp_lib_freestanding_mdspan   202311L

INCREASED feature-test macro (expected):

#define __cpp_lib_out_ptr 202311L

INCREASED feature-test macro (expected); note that WG21-P2821R5 #4176 is intentionally simultaneously updating this value:

#define __cpp_lib_span 202311L

This paper is vaguely similar to #4172, but seems more complicated. Again, we're not entirely sure what our hosted implementation needs to do here. IF all we need to do is define the __cpp_lib_freestanding_MEOW macros and increase __cpp_lib_out_ptr, then we could accept a PR for that before we open up the floodgates to arbitrary C++26 features. However, because WG21 made both this paper and WG21-P2821R5 #4176 simultaneously update __cpp_lib_span, and that paper is an actual C++26 feature, we should not increase that macro's value for this paper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx26 C++26 feature fixed Something works now, yay!
Projects
Development

Successfully merging a pull request may close this issue.

1 participant