You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
P2637 is merged into C++26 draft.
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
.The text was updated successfully, but these errors were encountered: