Skip to content

Conversation

@wirew0rm
Copy link
Contributor

@wirew0rm wirew0rm commented May 7, 2025

rva::holds_alternative<T>(variant) defers to std::holds_alternative<T>(v.get_base()). This adds the missing propagation of the type template parameter.

Without this the template parameter Tp of std::holds_alternative(..) cannot be determined if I call something like bool is_int = holds_aternative<int>(my_rva_variant);.

`rva::holds_alternative<T>(variant)` defers to `std::alternative<T>(v.get_base())`. This adds the missing propagation of the type parameter.
@codeinred
Copy link
Owner

Ah, good catch, thank you :)

@codeinred codeinred merged commit 9159bc5 into codeinred:main May 28, 2025
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

Successfully merging this pull request may close these issues.

2 participants