boostorg / boostorg/variant2

Member visit(P2637)

Open
#51 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
71
Forks
41
PR merge metrics
No merged PRs in 30d

Description

[P2637](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2637r3.html) is merged into C++26 [draft](https://eel.is/c++draft/variant.visit#9).

Implementation should not be hard, although a bit more complicated than in `std::variant`since 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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.