VERY experimental Nintendo Switch 2 emulator
C++
blocking_worker: Make use of templated lambda
Lioncash2c196e7c6e8c
diff --git a/src/core/hle/service/sockets/blocking_worker.h b/src/core/hle/service/sockets/blocking_worker.hindex f2be6ce5c0..2d53e52b68 100644--- a/src/core/hle/service/sockets/blocking_worker.h+++ b/src/core/hle/service/sockets/blocking_worker.h@@ -109,9 +109,8 @@ private:while (keep_running) {work_event.Wait();- const auto visit_fn = [service, &keep_running](auto&& w) {- using T = std::decay_t<decltype(w)>;- if constexpr (std::is_same_v<T, std::monostate>) {+ const auto visit_fn = [service, &keep_running]<typename T>(T&& w) {+ if constexpr (std::is_same_v<std::decay_t<T>, std::monostate>) {keep_running = false;} else {w.Execute(service);