-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
C++20 compatibility #6697
Closed
Closed
C++20 compatibility #6697
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
af91b57
Fix implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
syoliver-se 880549c
Allow to choose C++ version in cmake command line
syoliver-se 4a1df6e
Fix deprecated copy warning in gcc 9
syoliver-se 2756589
Minimal Rebuild is deprecated in visual studio since 2015 and is forb…
syoliver-se cea96d0
random_shuffle is deprecated in C++14 and removed in C++17
syoliver-se 4e46260
Fix implicit this lambda capture deprecation
syoliver-se 96f7359
Add implicit lambda capture in raw makefile
syoliver-se 5962870
Add MSVC2019 to AppVeyor
syoliver-se d31e395
Add gcc-9 with c++11 and c++20 to travis
syoliver-se 43eee91
Merge remote-tracking branch 'origin/master' into pr/6648
pdillinger 87f3151
Reduce cmake variants built on each PR
pdillinger 831fb29
Fix whitespace / noeol in CMakeLists.txt
pdillinger 3de7ca9
Tweak so that no configuration change is needed
pdillinger c9e951e
Unified RandomShuffle
pdillinger 756ea7f
Remove 'this' capture from folly import
pdillinger 1b7b028
Remove an unnecessary capture spec
pdillinger dda5107
make format
pdillinger 427a33d
Merge remote-tracking branch 'origin/master' into cxx20
pdillinger 882a9d5
Fixup after merge
pdillinger c19c8ac
Better capture solution for Baton.h
pdillinger da5b61e
Actually, just use explicit capture
pdillinger 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
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.
[this] { return ready();
should be enough, no ?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.
You're right. Unlike [=,this], [this] should be standard (C++11 and on). Got my wires crossed
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.
@pdillinger Me too... maybe removing all implicit captures can just fix the issue without ugly preprocessor define. I wanted to give a try before tomorrow but I saw your PR :)