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.
Log in to post a comment.