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

Maybe add variant2::optional<T>, based on variant<nullopt_t, T> #35

Open
pdimov opened this issue Aug 3, 2022 · 2 comments
Open

Maybe add variant2::optional<T>, based on variant<nullopt_t, T> #35

pdimov opened this issue Aug 3, 2022 · 2 comments

Comments

@pdimov
Copy link
Member

pdimov commented Aug 3, 2022

w/ JSON support etc

@pdimov
Copy link
Member Author

pdimov commented Oct 1, 2022

Or maybe just add to variant<void, T> the optional-like accessors has_value and operator*.

@glenfe
Copy link
Member

glenfe commented Oct 5, 2022

I'd vote for variant2::optional<T>

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

2 participants