-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Use std::variant instead of mapbox::util::variant #6903
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
4f46705
wip
SiarheiFedartsou ad990aa
wip
SiarheiFedartsou 1f6e4ff
wip
SiarheiFedartsou 5ce6b34
wip
SiarheiFedartsou e917e31
wip
SiarheiFedartsou 423154f
wip
SiarheiFedartsou 67941db
wip
SiarheiFedartsou 6078a61
wip
SiarheiFedartsou b311c2a
Remove third_party/variant
SiarheiFedartsou 076ce82
wip
SiarheiFedartsou 12c662c
wip
SiarheiFedartsou 42e9d5b
wip
SiarheiFedartsou d932509
wip
SiarheiFedartsou 08b505a
wip
SiarheiFedartsou bb0ab44
wip
SiarheiFedartsou 0547c79
wip
SiarheiFedartsou 272cbc9
wip
SiarheiFedartsou 7553a3f
wip
SiarheiFedartsou 01fd24f
wip
SiarheiFedartsou 2666e96
wip
SiarheiFedartsou 1d975e4
Merge branch 'master' into sf-std-variant
SiarheiFedartsou d0203d5
wip
SiarheiFedartsou 1190303
wip
SiarheiFedartsou e7b1ee5
wip
SiarheiFedartsou 4a1caae
wip
SiarheiFedartsou fb8a0d2
wip
SiarheiFedartsou 6448423
wip
SiarheiFedartsou d292d52
wip
SiarheiFedartsou fd146f3
wip
SiarheiFedartsou 1550c19
wip
SiarheiFedartsou 23dc69c
wip
SiarheiFedartsou b9178c8
wip
SiarheiFedartsou d139d55
wip
SiarheiFedartsou 47034c0
wip
SiarheiFedartsou ff27181
wip
SiarheiFedartsou fc16f49
wip
SiarheiFedartsou 2815988
wip
SiarheiFedartsou 381dd59
wip
SiarheiFedartsou cea393a
wip
SiarheiFedartsou 164f7ea
wip
SiarheiFedartsou dea156d
wip
SiarheiFedartsou 08a0724
wip
SiarheiFedartsou 383b584
wip
SiarheiFedartsou 7f747b7
wip
SiarheiFedartsou 8ab618c
wip
SiarheiFedartsou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
GCC is much more capricious when it comes to std::variant. While with newer GCC versions I was able to make it working, but with GCC 11 it seems it doesn't like constructions like this:
Workaround would be to use smth like
boost::recursive_wrapper
(event though there is no obvious need in it: compiler here has everything to calculate size ofValue
), but it would make code more complicated, so I chose the easier way: just drop GCC 11 job in favor of GCC 14 I recently added in another PR :) It seems GCC is getting better here: newer versions still had some issues I had no on Clang, but it was at least easy to fix.Let me please know if there are any objections here.
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.
I'd be ok to drop GCC11. I think in the past™️ we had aimed to track the latest Debian release for minimum compilers. No idea which one that is tho. 😉
If you want to go with a recursive wrapper, here's a write up of mine from also some time ago on how to implement such a wrapper with like five lines of code in standard C++.