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

P0472R3 Put monostate In <utility> #5294

Open
StephanTLavavej opened this issue Feb 17, 2025 · 2 comments
Open

P0472R3 Put monostate In <utility> #5294

StephanTLavavej opened this issue Feb 17, 2025 · 2 comments
Labels
cxx26 C++26 feature

Comments

@StephanTLavavej
Copy link
Member

WG21-P0472R3 Put monostate In <utility>

No feature-test macro is mentioned.

We can accept PRs to implement this backward-compatible change unconditionally.

@StephanTLavavej StephanTLavavej added the cxx26 C++26 feature label Feb 17, 2025
@github-project-automation github-project-automation bot moved this to Unimplemented in STL C++26 Features Feb 17, 2025
@StephanTLavavej StephanTLavavej moved this from Unimplemented to Available in STL C++26 Features Feb 17, 2025
@yehudamber
Copy link

Hi, I would like to work on this.
Just a question: monostate is currently defined in xutility, and its relational operators and std::hash specialization are defined in variant itself. All of those still have to be available when including <variant>. How make them available in both variant and utility (move them to a new header/move them to xutility and include it from utility/other)?

@frederick-vs-ja
Copy link
Contributor

Hi, I would like to work on this.
Just a question: monostate is currently defined in xutility, and its relational operators and std::hash specialization are defined in variant itself. All of those still have to be available when including <variant>. How make them available in both variant and utility (move them to a new header/move them to xutility and include it from utility/other)?

Thanks! In MSVC STL <variant> transitively includes <utility>, so this shouldn't be a problem.

#include <utility>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx26 C++26 feature
Projects
Status: Available
Development

No branches or pull requests

3 participants