-
Notifications
You must be signed in to change notification settings - Fork 261
[SUGGESTION] Add inspection of std::variant
and std::optional
values
#86
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
[SUGGESTION] Add inspection of std::variant
and std::optional
values
#86
Conversation
8f3ecfd
to
dd7d4a3
Compare
073a521
to
e4b0db9
Compare
Rebase to main. Make |
Might require #90 for some use cases. |
e4b0db9
to
58a2727
Compare
58a2727
to
95359ca
Compare
Conceptually can we make |
95359ca
to
a9f26b4
Compare
Thanks! About half of this (parsing and literals) seems to be duplicated from #79, so I'll focus on the |
I've now added this with 2f37277 - thanks again. |
Current implementation of
inspect
andis
allows to inspect types. #79 add inspection capabilities to check values of variables (what allows to replace cpp1 switches).This change introduce possibility to inspect values stored in
std::variant
andstd::optional
what make given code work:or you can use it as if statement with
std::optional
or
std::variant
This PR is based on #79