Skip to content
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

refactor(UBPreferencesController): narrow lambda capture #1050

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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.
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