You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix deprecated this capture in arvr/projects/ariane/aria_research_kit/projectaria_tools_gen1_legacy/core/data_provider/VrsDataProviderFactory.cpp +1 (#271)
Summary:
Pull Request resolved: #271
In the future LLVM will require that lambdas capture `this` explicitly. `-Wdeprecated-this-capture` checks for and enforces this now.
This diff adds an explicit `this` capture to a lambda to fix an issue that presents similarly to this:
```
-> fbcode/path/to/my_file.cpp:66:47: error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-
Wdeprecated-this-capture]
-> detail::createIOWorkerProvider(evb, requestsRegistry_);
-> ^
-> fbcode/path/to/my_file.cpp:61:30: note: add an explicit capture of 'this' to capture '*this' by reference
-> evb->runInEventBaseThread([=, self_weak = std::move(self_weak)]() {
-> ^
-> , this
```
Differential Revision: D82976785
fbshipit-source-id: fabd5ef094655ac2ca23a173f926dbdb18c5403d
0 commit comments