diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-07-12 15:49:40 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-07-12 15:49:42 -0400 |
| commit | cb588c9ef12e1f09d031560a27f4dc0cf1b97dde (patch) | |
| tree | 31500cc74527717ed34bd84691ec93c15f5ae1e6 /src/input_common | |
| parent | 75a97dc0029cee26bb1965856e3adc3612a85652 (diff) | |
udp: Silence a C++20 deprecation warning
C++20 deprecates using the = lambda capture to implicitly capture the
this pointer. Instead, we must specify it explicitly.
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/udp/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index da5227058d..e63c73c4f5 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp @@ -234,7 +234,7 @@ CalibrationConfigurationJob::CalibrationConfigurationJob( std::function<void(Status)> status_callback, std::function<void(u16, u16, u16, u16)> data_callback) { - std::thread([=] { + std::thread([=, this] { constexpr u16 CALIBRATION_THRESHOLD = 100; u16 min_x{UINT16_MAX}; |
