Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deprecated this capture in folly/experimental/channels/ProxyChann…
…el-inl.h Summary: 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 ``` Reviewed By: meyering Differential Revision: D52279203 fbshipit-source-id: b897d027b0c238247e0686286325eb555dce8963
- Loading branch information