Date: Wed, 04 Feb 2026 16:03:15 -0800
On Wednesday, 4 February 2026 15:47:51 Pacific Standard Time Henry Miller via
Std-Proposals wrote:
> It is important that c/zstring_view have a length that indicates how many
> bytes total can be written to, perhaps with a note that all bytes after the
> first null are unspecified.
Why? It's a view, you can't write to any bytes you get from it.
If you want to modify, go back to the original object that holds the writable
buffer, like std::string.
Std-Proposals wrote:
> It is important that c/zstring_view have a length that indicates how many
> bytes total can be written to, perhaps with a note that all bytes after the
> first null are unspecified.
Why? It's a view, you can't write to any bytes you get from it.
If you want to modify, go back to the original object that holds the writable
buffer, like std::string.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-02-05 00:03:16
