C++ Logo


Advanced search

Subject: Re: [SG16-Unicode] Replacement for codecvt
From: Steve Downey (sdowney_at_[hidden])
Date: 2019-08-29 16:24:22

 P1394R3 : Range constructor for std::span

" std::span is specified to be constructible from Container types. However,
while defined, Container is not a concept and as such ContiguousRange is
more expressive. Furthermore, there exist some non-container ranges that
would otherwise be valid ranges to construct span from."

On Thu, Aug 29, 2019 at 5:05 PM Zach Laine <whatwasthataddress_at_[hidden]>

> On Thu, Aug 29, 2019 at 3:58 PM Steve Downey <sdowney_at_[hidden]> wrote:
>> It's not out of the question that span may acquire contiguous_range
>> constructors for 20.
> I don't understand this. There is already a constructor that does this:
> http://eel.is/c++draft/views.span#span.cons-itemdecl:5
> The constraints are all met by a contiguous_range.
> Zach
> _______________________________________________
> SG16 Unicode mailing list
> Unicode_at_[hidden]
> http://www.open-std.org/mailman/listinfo/unicode

SG16 list run by sg16-owner@lists.isocpp.org