Skip to content

Conversation

@stefanatwork
Copy link
Collaborator

Instead of using the [=, this] capture, which copies all local variables and captures this by reference, the code now explicitly lists only the necessary variables and this in the capture list. Since C++20 changes the recommended way of capturing this, we would otherwise have code that throws warnings either in C++20 mode or in C++17 mode. Explicit captures compiles without warnings in both cases.

@stefanatwork stefanatwork added this to the v4.4.1 milestone Oct 7, 2025
@stefanatwork stefanatwork self-assigned this Oct 7, 2025
Copy link
Collaborator

@svenwoop svenwoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't really like that we have to capture all variables individually when also capturing this, but could not find a better solution either.

@stefanatwork stefanatwork merged commit 46a17a0 into master Oct 8, 2025
4 checks passed
@stefanatwork stefanatwork deleted the sw/lambdas branch October 8, 2025 08:16
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.

3 participants