From aa52c17f58cddacbac3851b31b813443bc7d97c7 Mon Sep 17 00:00:00 2001 From: MihailJP Date: Fri, 9 Oct 2020 20:02:04 +0900 Subject: [PATCH] =?UTF-8?q?Linux=E3=81=A7=E3=83=93=E3=83=AB=E3=83=89?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ラムダの引数にconstが有るか無いかの違い。 --- mjcore/remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjcore/remote.cpp b/mjcore/remote.cpp index 5c446a81..1f1784f8 100644 --- a/mjcore/remote.cpp +++ b/mjcore/remote.cpp @@ -243,7 +243,7 @@ void RemoteNaki::thread_server() { } for (int i = 0; i < ACTUAL_PLAYERS; i++) { using namespace mihajong_socket::protocol; - MoveTile::for_each([](std::pair& indices) { + MoveTile::for_each([](const std::pair& indices) { mihajong_socket::server::send(Lipai_From + indices.first); mihajong_socket::server::send(Lipai_To + indices.second); }, i, true);