Skip to content

Commit

Permalink
socktap: fix compiler issue in TcpLink
Browse files Browse the repository at this point in the history
  • Loading branch information
riebl committed Oct 29, 2023
1 parent 8600182 commit 57de6d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/socktap/tcp_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <boost/bind/bind.hpp>
#include <boost/bind/placeholders.hpp>
#include <iostream>
#include <utility>

namespace ip = boost::asio::ip;
using namespace vanetza;
Expand Down Expand Up @@ -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_);
Expand Down

0 comments on commit 57de6d8

Please sign in to comment.