Re: [Boost-bugs] [Boost C++ Libraries] #7962: shared_ptr of chat_server.cpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7962: shared_ptr of chat_server.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-24 04:12:52


#7962: shared_ptr of chat_server.cpp
-------------------------------------------------+--------------------------
  Reporter: Shiwei Weng <wengshiwei@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: Boost 1.53.0 | Component: asio
   Version: Boost 1.53.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------------------------+--------------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => wontfix

Comment:

 In this case, the chat server is only put in a shared_ptr so that it may
 be stored in a std::list. For example, in C++11 this may be eliminated in
 favour of using std::list::emplace_back. It's lifetime outlasts
 io_service::run() so there isn't a need to tie the lifetime to the
 asynchronous operations it performs.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7962#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC