From 57de6d86618f79f9bcbcf7076e8a0c6f43d69ed5 Mon Sep 17 00:00:00 2001 From: Raphael Riebl Date: Sun, 29 Oct 2023 20:32:56 +0100 Subject: [PATCH] socktap: fix compiler issue in TcpLink --- tools/socktap/tcp_link.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/socktap/tcp_link.cpp b/tools/socktap/tcp_link.cpp index 41916c3fb..0d3c0532a 100644 --- a/tools/socktap/tcp_link.cpp +++ b/tools/socktap/tcp_link.cpp @@ -5,6 +5,7 @@ #include #include #include +#include namespace ip = boost::asio::ip; using namespace vanetza; @@ -71,7 +72,7 @@ void TcpLink::connect(ip::tcp::endpoint ep) void TcpLink::accept(ip::tcp::endpoint ep) { if (acceptors_.count(ep) == 0) { - acceptors_.insert({ep, ip::tcp::acceptor(*io_service_, ep)}); + acceptors_.insert(std::make_pair(ep, ip::tcp::acceptor(*io_service_, ep))); } sockets_.emplace_back(*io_service_, &callback_);