summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-07 06:47:43 +0200
committerLioncash <mathew1800@gmail.com>2020-09-07 06:47:46 +0200
commit188a3cf74cba3ad8a19157614d556c134b5ebf47 (patch)
tree6cb8cee9b6d96088125df954ca3f0fc75544e782 /src
parentblocking_worker: Resolve -Wdocumentation warning (diff)
downloadyuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar.gz
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar.bz2
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar.lz
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar.xz
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.tar.zst
yuzu-188a3cf74cba3ad8a19157614d556c134b5ebf47.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/sockets/blocking_worker.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/sockets/blocking_worker.h b/src/core/hle/service/sockets/blocking_worker.h
index f2be6ce5c..2d53e52b6 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);