
4 Oct
2017
4 Oct
'17
3:04 p.m.
On Wed, Oct 4, 2017 at 7:51 AM, paul <pfultz2@yahoo.com> 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? Thanks