24 Jun
2026
24 Jun
'26
5:45 p.m.
Vinnie Falco wrote:
On Wed, Jun 24, 2026 at 10:34 AM Peter Dimov <pdimov@gmail.com <mailto:pdimov@gmail.com> > 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.