
18 Dec
2005
18 Dec
'05
10:48 a.m.
I have now also eliminated the allocation of the socket by adding a separate member to impl_type for storing the socket, and changing to use shared_ptr<void> with a no-op deleter object. The shared_ptr member of impl_type is now just used as a token to indicate cancellation.
Ummm, very clever move! There is no faster allocation than doing nothing. If you want to avoid the counter, you could use intrusive_ptr and the party is over. Regards and thanks for you quick replies, Ion