On Tue, 23 Jun 2026 at 19:19, Vinnie Falco <vinnie.falco@gmail.com> wrote:
On Tue, Jun 23, 2026 at 9:05 AM Ruben Perez via Boost <boost@lists.boost.org> wrote:
6) Can I write types that satisfy ConstBufferSequence or DynamicBuffer without explicitly depending on Capy?
In theory, this is possible. Buffer sequences are defined in terms of a range whose value type is convertible to const_buffer or mutable_buffer. This means Capy could add constructors to const_buffer and mutable_buffer for span, or SpanLike, and then it would work.
This would suit my use case and IMO reduce friction a lot.
I have refrained from doing so until we get field experience through the asio bridges. It would be nice to keep the buffer sequences compatible with Asio. Although that might require tradeoffs that cost too much.
I understand your posture. I'll try to fill a more complete use case before the review ends. Best, Ruben.