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

Substituting std::holds_alternative #185

Open
afalkenhahn opened this issue Sep 30, 2024 · 0 comments
Open

Substituting std::holds_alternative #185

afalkenhahn opened this issue Sep 30, 2024 · 0 comments

Comments

@afalkenhahn
Copy link

I'm backporting some C++17 code to C++14 and I'm using mapbox::variant as a replacement for std::variant which is unavailable in C++14. But now I've stumbled across some code that uses std::holds_alternative. AFAICS, this is currently unavailable in mapbox variant, isn't it? How could I do what std::holds_alternative does with mapbox 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