-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Print C++17 types (any, optional and variant) and absl::any #2742
Conversation
@kuzkry Ok, after digging a little in the code base here is the summary of what I understood so far ..
|
Hey @o-micron. First things first, To reply all your other points: I didn't investigate it but you don't need to care about these two failing AppVeyor builds as master is unstable now. I don't know what's the reason but I can tell it's been failing since commit fd53816 so either it's that commit fault or AppVeyor VMs were externally modified. |
Yeah |
In case of your PR #2736, yes :) Just do your work there and ignore these 2 failing jobs for now. If you wanna fix the failing master, you could create another PR by branching out from master. |
Sorry for our delays in getting to this, we are looking at it again now. One quick suggestion upon skimming -- the variant output should likely also stream the index of the alternative that is mentioned (either in addition to or in place of the type info). This is because a variant can have multiple alternatives with the same type, so the type and value alone is not necessarily enough to determine which alternative was actually active. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general the change LGTM. Thanks!
I think this is a good suggestion for improvement but doesn't need to be part of this change. This change aims at supporting users who uses C++17 std types without the dependency on Abseil. I would even suggest separating the |
5ac7646
to
b62abd7
Compare
@mattcalabrese-google, thanks, done :) |
LGTM. I think the |
I agree "int<0>" is a bit confusing. How about "int(0)" or "int@0"? |
b62abd7
to
ae7f8f8
Compare
Sure, I've chosen int(0). |
ae7f8f8
to
eb3953f
Compare
I've lowered the amount of commits so it's neat and concise now. |
Thank you, we have started internal review. Please don’t |
Rework of rejected #2438 due to the plan on taking hard dependency on Abseil. I'm resubmitting because recent commit 6f5fd0d seems to suggest abandonment of Abseil incorporation like it was planned half a year ago.