[SG16-Unicode] Replacement for codecvt

Steve Downey sdowney at gmail.com
Thu Aug 29 23:24:22 CEST 2019


 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 gmail.com>
wrote:

> On Thu, Aug 29, 2019 at 3:58 PM Steve Downey <sdowney at gmail.com> 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 isocpp.open-std.org
> http://www.open-std.org/mailman/listinfo/unicode
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/unicode/attachments/20190829/a1ffd003/attachment.html 


More information about the Unicode mailing list