7 Jun
2010
7 Jun
'10
10:17 a.m.
You would destroy the socket. Delete'ing it,
So it would be always necessary to store a ptr to a socket? Then delete the socket, which was passed by reference to async_read()? Doesn't sound good, does it?
or using a boost::optional.
But it's not optional, according to its semantics...