
3 Jan
2006
3 Jan
'06
1:14 p.m.
Christopher Kohlhoff wrote: [about passing the buffer type to the lower layers]
Which I do already :)
Very good, i should have read the implementation more carefuly :)
I think special cases (such as aligned or shared-memory buffers) could be handled by implementation overloads (note: not function overloads in the public interface) based on the type of Mutable_Buffers::value_type or Const_Buffers::value_type.
That way individual streams can be optimised for specific buffer types without propagating additional overloads back through to the interface.
Well, i certanly didn't intend that the public interface be specialized for all kind of buffers. I think that the way asio works currently is fine. --- Giovanni P. Deretta