C++ Logo

std-proposals

Advanced search

[std-proposals] Make basic_string_view's range construction _conditionally_ explicit

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Fri, 27 Jan 2023 13:17:22 +0100
Hello,

I'm working on a proposal that wants to "make string views usable again"
as an interface type for read-only non-owning contiguous string data.

Namely: re-enable their implicit conversion from any other compatible
range class. P2499R0 made the conversion explicit, IMO damaging
interoperability between string view classes. Applying P2499's change
(make the range constructor explicit) to Qt's own string view classes
caused quite some friction.

I've posted a draft here: https://isocpp.org/files/papers/D2779R0.html

Any feedback is welcome.

Thank you,
-- 
Giuseppe D'Angelo

Received on 2023-01-27 12:17:26