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 (https://reviews.llvm.org/D142639) and produces a warning in newer versions of clang.
This commit simply makes the implicit capture explicit, preventing the warning.
When declaring a lambda with a value-capture default
[=, ...]
, thethis
pointer is implicitly captured by value as well. This results in potentially-unintuitive behavior (https://reviews.llvm.org/D142639) and produces a warning in newer versions of clang.This commit simply makes the implicit capture explicit, preventing the warning.