id summary reporter owner description type status milestone component version severity resolution keywords cc 7962 shared_ptr of chat_server.cpp Shiwei Weng chris_kohlhoff "In the example file ""[http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/example/chat/chat_server.cpp chat_server.cpp]"" http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/example/chat/chat_server.cpp In the for-loop in the main: chat_server_ptr server(new chat_server(io_service, endpoint)); while typedef boost::shared_ptr chat_server_ptr; Since a shared_ptr is used to manage chat_server, class chat_server should inherit public boost::enable_shared_from_this, just as class chat_session does. Or in the member function start_accept() of class chat_server: acceptor_.async_accept( new_session->socket(), boost::bind(&chat_server::handle_accept, this, new_session, boost::asio::placeholders::error)); The appearance of ""this"" seems problematic. Thanks for reading. Shiwei Weng" Bugs closed Boost 1.53.0 asio Boost 1.53.0 Problem wontfix