Boost logo

Boost :

Subject: Re: [boost] Error to convert to boost::asio::streambuf to raw buffer char *buffer
From: hh h (jupiter.hce_at_[hidden])
Date: 2018-12-18 10:08:26

The beast does not seem included in 1.65 which I am running on Ubuntu
18, looks like a simple alternative is to use array as I know the
packet size to read from the async_read, the msgpack::unpack should be
happy with the array.

Thank you very much.

On 12/18/18, Vinnie Falco via Boost <boost_at_[hidden]> wrote:
> On Mon, Dec 17, 2018 at 4:41 PM Steven Watanabe via Boost
> <boost_at_[hidden]> wrote:
>> asio::streambuf doesn't necessarily store contiguous data,
>> so this can't work as is.
> Actually it does, and you can simply write:
> boost::beast::buffers_front(;
> To retrieve a const_buffer to the first (and only) buffer in the data.
> Thanks
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at