Skip to content

Conversation

@Vekhir
Copy link
Contributor

@Vekhir Vekhir commented Aug 14, 2024

Using the default capture = captures more than it has to and leads to ambiguity whether the object is capture by value or by reference. This produces a warning in C++20.

Exactly enumerate the captured variables to resolve the warning.

Resolves warning 2 of #1046

Using the default capture `=` captures more than it has to and
leads to ambiguity whether the object is capture by value or by
reference. This produces a warning in C++20.

Exactly enumerate the captured variables to resolve the warning.
@Vekhir Vekhir force-pushed the narrow-lambda-capture branch from 783ba0f to 0362ff9 Compare March 27, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant