
18 Dec
2005
18 Dec
'05
2:26 a.m.
Hi Ion, --- Ion GaztaƱaga <igaztanaga@gmail.com> wrote:
Looks good. Eliminating "null()" makes things much better. However the underlying shared_ptr<socket> is quite important.
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. Thanks for pointing out these inefficiencies! :) Cheers, Chris