Boost logo

Boost :

From: Giovanni P. Deretta (gpderetta_at_[hidden])
Date: 2006-01-03 08:14:44


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk