Skip to content

Fix deprecated implicit this capture in [=] lambdas (C++20) - #1121

Open
PCCV wants to merge 1 commit into
dail8859:masterfrom
PCCV:fix-implicit-this-capture-cpp20
Open

Fix deprecated implicit this capture in [=] lambdas (C++20)#1121
PCCV wants to merge 1 commit into
dail8859:masterfrom
PCCV:fix-implicit-this-capture-cpp20

Conversation

@PCCV

@PCCV PCCV commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces implicit this capture ([=]) with explicit capture ([=, this]) in lambdas defined inside member functions, across 18 files. This fixes the C++20 deprecation warning:

attention: la capture implicite de « this » via « [=] » est dépréciée en C++20 [-Wdeprecated]

Scope

  • Mechanical fix, one line per occurrence, no behavior change.
  • thirdparty/scintilla/src/Editor.cxx has one remaining occurrence of this warning, left untouched intentionally since it's vendored third-party code, not maintained here.

Testing

Built in Debug and Release, confirmed no more -Wdeprecated warnings outside of the vendored Scintilla file mentioned above.

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