Menu

#47 streambuf sample code error

open
nobody
None
5
2009-09-12
2009-09-12
Darrell K
No

From the "Reading from a socket directly into a streambuf" example in basic_streambuf.hpp:

asio::streambuf::const_buffers_type bufs = b.prepare(512);

I believe that should be mutable_buffers_type, not const_buffers_type.

Discussion


Log in to post a comment.