commit | 058c0059c80001cc891ffee94a00fa15d7edf093 | [log] [tgz] |
---|---|---|
author | Devon Loehr <dloehr@google.com> | Wed Jul 17 20:59:39 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 29 19:30:52 2024 |
tree | be6e8202d8acd320601496073fdbc3f5d1fb2eb5 | |
parent | 6ea1c96325baada0e6ba0b29456e02f403e15a1e [diff] |
Remove implicit `this` captures When declaring a lambda with a value-capture default `[=, ...]`, the this pointer is implicitly captured by value as well. This results in potentially-unintuitive behavior and has been deprecated in C++20. It produces a warning in newer versions of clang (https://reviews.llvm.org/D142639). Unfortunately, the preferred C++20 pattern `[=, this, ...]` is not compatible with previous C++ versions. To maintain compatibility with C++14, 17, and 20, this CL modifies all lambdas which capture `this` to explicitly capture all the necessary variables, with no capture-default. Bug: chromium:351004963 Change-Id: I10c4a9669f340efba75a3e4016f0988a2d606d1d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357322 Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Devon Loehr <dloehr@google.com> Cr-Commit-Position: refs/heads/main@{#42886}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.