Commit 8cff802
Fix deprecated this capture in faiss/gpu/GpuIcmEncoder.cu +1
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
```
Differential Revision: D87785090
fbshipit-source-id: 1a4f6a9be99118d900f27967110f80b2665f4cb01 parent f5405d5 commit 8cff802
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments