C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] Replacement for codecvt

From: Steve Downey <sdowney_at_[hidden]>
Date: Thu, 29 Aug 2019 17:24:22 -0400
 P1394R3 : Range constructor for std::span
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1394r3.pdf
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1394r3.pdf>

" 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]>
wrote:

> 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
>

Received on 2019-08-29 23:24:35