Update lambas for C++20#1338
Merged
Merged
Conversation
7 tasks
PatTheMav
approved these changes
Apr 17, 2026
Member
PatTheMav
left a comment
There was a problem hiding this comment.
Approving mainly because it makes explicit what happened implicitly before, memory (un)safety is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replace implicit lambda captures to be explicit for C++20 compliance while retaining C++17 compatibility.
Motivation and Context
Want obs-studio and its submodules to build with C++20 some day.
However, websocketpp, used by obs-websocket, is not C++20 compatible, so we will need to choose one of the following options:
That said, I wanted to at least push the required obs-websocket changes here for visibility/review.
How Has This Been Tested?
Tested OS(s): Windows 11
Types of changes
Checklist:
masteror arelease/*branch.