Subject: Re: [boost] [beast] A Networking-TS version of Boost.Asio and Boost.Beast is here!
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2017-10-04 15:04:42
On Wed, Oct 4, 2017 at 7:51 AM, paul <pfultz2_at_[hidden]> wrote:
> Ideally, the constructor to `buffer` or `const_buffer` should take any class
> that has a `.data()` and `.size()` member. This way `value_type` can fulfill
> the requirement of `ConvertibleToBuffer` without needing the dependency on a
> concrete type.
There's another solution that we spit-balled, it is this:
using const_buffer = std::pair<void const*, std::size_t>;
using mutable_buffer = std::pair<void*, std::size_t>;
Now ConvertibleToConstBuffer just means convertible to std::pair<void
const*, std::size_t> which is a plain std:: type. This also would
require a paper to change Networking-TS.
What do you think?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk