Date: Sat, 07 Sep 2024 23:21:16 +0200
On Saturday 7 September 2024 22:11:32 CEST Jeremy Rifkin via Std-Proposals
wrote:
> If I understand correctly P0781 was written before std::span was
> proposed and suggested some magic std::argument_list. Now that there's a
> standard replacement for pointer+length, is it worth reconsidering?
std::span requires that there be a contiguous range of the value_types in
memory somewhere. That's the problem here: std::string_view aren't there. We
could use a std::span<std::cstring_view> but no one wants to standardise
cstring_view.
wrote:
> If I understand correctly P0781 was written before std::span was
> proposed and suggested some magic std::argument_list. Now that there's a
> standard replacement for pointer+length, is it worth reconsidering?
std::span requires that there be a contiguous range of the value_types in
memory somewhere. That's the problem here: std::string_view aren't there. We
could use a std::span<std::cstring_view> but no one wants to standardise
cstring_view.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Platform & System Engineering
Received on 2024-09-07 21:21:24