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

Add a bit about monostate in std::variant section? #28

Open
jmarrec opened this issue Dec 11, 2020 · 0 comments
Open

Add a bit about monostate in std::variant section? #28

jmarrec opened this issue Dec 11, 2020 · 0 comments

Comments

@jmarrec
Copy link

jmarrec commented Dec 11, 2020

Thank you for the link to the ALL_IN_ONE.md and the work behind it. What a great read, I wish I knew it existed before!

By usage, I found one thing that's hard/awkward with std::variant is when your types aren't defaulted constructible (or when you want an option for the case where it's not initialized (optional)), with the use of std::monostate. Perhaps adding a small bit about this would be good?

I realize this isn't meant to replace actual documentation but rather get to the point (and it's doing an awesome job at it!), so perhaps that would be considered clutter, I'm not sure.

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