-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Make implicit capture explicit for C++20 #1669
Conversation
Thanks for the PR. There are some CI build failures: https://travis-ci.org/github/fmtlib/fmt/jobs/684199343 |
OK, it seems that mitigating the warning for a C++20 compiler is mutually exclusive to a C++14 compiler. Are you generally OK with the Looks like CI is passing |
Sure but I suggest renaming |
Another option is to change |
I am not sure how to do this such that it is portable since C++14 compilers reject any mention of
ACK. Done. |
|
This seems to work (https://godbolt.org/z/jy-YYn): struct S {
void f() {
int i;
auto g = [i, this]() {};
g();
}
}; |
Ok, I will give it a try. |
@vitaut explicit capture done. Now go fix your CI 🔂 |
Thanks! Looks like a transient failure, I restarted the job. |
I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.