|
Boost : |
From: Cory Nelson (phrosty_at_[hidden])
Date: 2005-12-25 16:39:02
Well, the buffer object itself isn't modified, only what it points to.
I guess this could use some clarification though.
On 12/25/05, Mats Nilsson <mats.nilsson_at_[hidden]> wrote:
> Hi
>
> Just a question asking to clarify the use of "const Mutable_Buffers
> &mutable_buffers" in the calls to some of the functions, e.g
> stream_socket::receive(const Mutable_Buffers &buffers, message_flags flags).
>
> To me, this is not logical, since I'd expect a receive function to actually
> modify the stuff I send into it, and the const qualifier doesn't seem to
> allow this.
>
> If it needs to be this way, you might want to explicitly explain this design
> choice somewhere close to where it is used.
>
> Also the reference documentation for asio::mutable_buffer seems to have a
> copy-paste bug; its detailed description includes "The const_buffer class
> provides ...", or am I missing something?
>
> Mats
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
-- Cory Nelson http://www.int64.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk