$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] How to design proper release of a boost::asio socket or wrapper thereof
From: Arash Partow (arash_at_[hidden])
Date: 2017-04-06 21:19:54
Christopher Pisz via Boost-users wrote:
> The problem I have with this example listing is that it cheats and it cheats
> big, by making the tcp_connection a shared_ptr, such that it doesn't worry
> about the lifetime management of each connection.
>
What's wrong with how connections are managed in the chat_server example?
http://think-async.com/Asio/boost_asio_1_10_6/doc/html/boost_asio/example/cpp11/chat/chat_server.cpp