
8 Feb
2006
8 Feb
'06
1:31 p.m.
Christopher Kohlhoff wrote:
Hi Giovanni,
--- "Giovanni P. Deretta" <gpderetta@gmail.com> wrote: <snip>
In the end asio::socket_ptr<Stream> would look at its pointed object and decide if it needs dynamic allocation or not.
I'm happy with such a solution provided that no requirement is made that any asio class (stream_socket, etc) must support copying.
But let me ask: why would this need to be part of asio at all?
Convenience first and foremost - it would let you write a tutorial without introducing other boost components - and freedom to change the implementation later. Lack of dependencies, in other words.