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

Member visit(P2637) #51

Open
libbooze opened this issue Dec 21, 2024 · 0 comments
Open

Member visit(P2637) #51

libbooze opened this issue Dec 21, 2024 · 0 comments

Comments

@libbooze
Copy link

libbooze commented Dec 21, 2024

P2637 is merged into C++26 draft.

Implementation should not be hard, although a bit more complicated than in std::variantsince I presume we want to allow this functionality in standards that do not support deducing this.

If maintainer is fine with this change I could try to implement it, as mentioned logic does not seem hard beside code duplication due to lack of deducing this.

edit: if maintainer feels functionality for older standards is not worth the trouble then I believe at least we should implement version with deducing this in newer standards to keep variant2 API matching std::variant.

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

No branches or pull requests

1 participant