Hello,
I am trying to create a basic server with Websocket++ on a Rapsberry Pi. I used the code from the utility server tutorial on Websocket++ website, but when I try to build it I get this error:
/usr/include/c++/8/ext/new_allocator.h:136:4: error: no matching function for call to ‘boost::asio::basic_stream_socket<boost::asio::ip::tcp>::basic_stream_socket(std::reference_wrapper<boost::asio::io_context>)’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/boost/asio/basic_socket_streambuf.hpp:25,
from /usr/local/include/boost/asio/basic_socket_iostream.hpp:24,
from /usr/local/include/boost/asio.hpp:44,
from /usr/include/websocketpp/common/asio.hpp:65,
from /usr/include/websocketpp/transport/asio/base.hpp:31,
from /usr/include/websocketpp/transport/asio/connection.hpp:31,
from /usr/include/websocketpp/transport/asio/endpoint.hpp:32,
from /usr/include/websocketpp/config/asio_no_tls.hpp:32,
from /home/pi/Documents/WebsocketTest/server.cpp:1:
I am using the boost version of Asio (Boost 1.83.0). Any idea what's going wrong?