Use explicit capture of this by Arvil · Pull Request #95 · Dax89/QHexView · GitHub
Skip to content

Use explicit capture of this - #95

Merged
Dax89 merged 1 commit into
Dax89:5.0from
Arvil:5.0
Aug 13, 2025
Merged

Use explicit capture of this#95
Dax89 merged 1 commit into
Dax89:5.0from
Arvil:5.0

Conversation

@Arvil

@Arvil Arvil commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Implicit capture of this via [=] is deprecated in C++20, while explicit capture is backwards-compatible with C++11.
While currently a warning, this helps building with C++20 and -Werror.

Crediting James Harris for this.

Implicit capture of this via [=] is deprecated in C++20,
while explicit capture is backwards-compatible with C++11.
@Dax89

Dax89 commented Aug 13, 2025

Copy link
Copy Markdown
Owner

@Arvil

Arvil commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

Hi Dax89, thanks for the clarification. I created #96 for this purpose.

@Dax89
Dax89 merged commit beadd08 into Dax89:5.0 Aug 13, 2025
@Dax89

Dax89 commented Aug 13, 2025

Copy link
Copy Markdown
Owner

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.

2 participants