Re: [Capy] Review Note

Peter Dimov via Boost <[email protected]> Sun, 28 Jun 2026 20:02:00 +0300
Newsgroups gmane.comp.lib.boost.devel
Message-ID <[email protected]>
> 1. Buffer sequences
> 
> * ConstBufferSequence, MutableBufferSequence concepts
> * supporting primitives: buffer_begin, buffer_end, buffer_size, buffer_length,
> buffer_slice

Incidentally, `buffer_begin` is not named `buffer_begin` in Capy, but `begin`.
This is a mistake.

If `x` is `span<byte>` and we decide that spans are buffers, `begin(x)` is
`x.begin()`, but `buffer_begin(x)` is `&x`. These two operations are not
the same thing, so they should not be called with the same name.


_______________________________________________
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/SON6L5R3AWYZ2CR45FZS3B6UIDZK2RVF/