Date: Mon, 02 Feb 2026 11:48:29 -0800
On Monday, 2 February 2026 10:34:59 Pacific Standard Time Arthur O'Dwyer wrote:
> I agree that it's weird, but, wouldn't you agree that the currently proposed
> behavior of cstring_view is consistent with the standard-since-C++17
> behavior of string_view?
I agree it's consistent. It's also wrong: the consistency is not required and
is harmful.
> auto cv = std::cstring_view(s); // should get 11 characters, not 5,
> right? for consistency?
Should get 5.
> I agree that it's weird, but, wouldn't you agree that the currently proposed
> behavior of cstring_view is consistent with the standard-since-C++17
> behavior of string_view?
I agree it's consistent. It's also wrong: the consistency is not required and
is harmful.
> auto cv = std::cstring_view(s); // should get 11 characters, not 5,
> right? for consistency?
Should get 5.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-02-02 19:48:36
