diff options
Diffstat (limited to 'zen/socket.h')
-rw-r--r-- | zen/socket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/socket.h b/zen/socket.h index c77a4084..0b4c823d 100644 --- a/zen/socket.h +++ b/zen/socket.h @@ -46,7 +46,7 @@ public: if (!servinfo) throw SysError(L"getaddrinfo: empty server info"); - auto getConnectedSocket = [&](const auto& /*::addrinfo*/ ai) + const auto getConnectedSocket = [](const auto& /*::addrinfo*/ ai) { SocketType testSocket = ::socket(ai.ai_family, ai.ai_socktype, ai.ai_protocol); if (testSocket == invalidSocket) |