Ubuntu – Strange behavior when passing a cable captures `std::initializer_list<std::shared_ptr<Conversation>>` to the complete handler
The code snippet below always close the connection at once when a client has connected to the server, which is really out of my expection. #include <iostream> #include <memory> #include <system_error> #include "tcp_server.hpp" TcpServer::TcpServer(asio::io_context& io_context, const unsigned int& port):m_acceptor(io_context, tcp::endpoint(tcp::v4(),…