changed variant_stream to return a pointer instead of a reference when querying for underlying type (avoids exceptions)

This commit is contained in:
Arvid Norberg
2008-10-18 07:12:04 +00:00
parent 68981fc3fd
commit 3d75732145
5 changed files with 16 additions and 13 deletions

View File

@@ -772,7 +772,7 @@ namespace aux {
{
shared_ptr<socket_type> c(new socket_type(m_io_service));
c->instantiate<stream_socket>(m_io_service);
listener->async_accept(c->get<stream_socket>()
listener->async_accept(*c->get<stream_socket>()
, bind(&session_impl::on_incoming_connection, this, c
, boost::weak_ptr<socket_acceptor>(listener), _1));
}