Re: [Capy review] Some questions

Vinnie Falco via Boost <[email protected]> Wed, 24 Jun 2026 12:21:29 -0700
Newsgroups gmane.comp.lib.boost.devel
Message-ID <CA+EzHGdGWFZaiQHRD2rT8ODqykjni46QwPfG2JymhWZUQ0JLyQ@mail.gmail.com>
On Wed, Jun 24, 2026 at 11:37 AM Andrey Semashev via Boost <
[email protected]> wrote:

> I suspect one reason is that concepts as a core language feature did not exist
> when ASIO was designed. Which is not a good reason for a newly designed
> library targeting modern C++.
>

Let me dispel that misconception.

Here is the ConstBufferSequence concept definition:

https://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/reference/ConstBufferSequence.html

This is the 2013 version of the library, seven years before the `concept`
keyword was added to C++20.

The "concept" for the value type of buffer sequences is what Peter said:
ConvertibleToConstBuffer (also located on the page)

Thanks
_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/HAUOZ6KUYRB23QGVIFRVDR2LUEJYC5SF/