Re: [Capy review] Some questions

Peter Dimov via Boost <[email protected]> Wed, 24 Jun 2026 20:45:26 +0300
Newsgroups gmane.comp.lib.boost.devel
Message-ID <[email protected]>
Vinnie Falco wrote:
> On Wed, Jun 24, 2026 at 10:34 AM Peter Dimov <[email protected]
> <mailto:[email protected]> > wrote:
> 
> 	I assume you mean array<span<byte const>, 3> here.
> 
> 
> 
> Yes
> 
> 
> 	...the set of types considered buffers is closed, because const_buffer
> only has a finite set of constructors
> 
> 
> Not if the constructor is a template. I realize that this is heading in the direction
> of being functionally equivalent to the concept

It is. Whether you define the concept indirectly by the overload set of
the constructors, or directly, doesn't make much of a difference. The latter
is just both more honest and better documented.

Concepts exist even if you never have the keyword "concept" in your code
or your documentation. They are just implicit.


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