> Well, then the rest of my email applies: what's the path toward making it modifiable?

Is there anything stopping you from making a copy?



From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> on behalf of Thiago Macieira via Std-Proposals <std-proposals@lists.isocpp.org>
Sent: Wednesday, October 16, 2024 1:48:15 AM
To: std-proposals@lists.isocpp.org <std-proposals@lists.isocpp.org>
Cc: Thiago Macieira <thiago@macieira.org>
Subject: Re: [std-proposals] A draft for a std::arguments proposal

On Monday 14 October 2024 22:33:36 GMT-7 Jeremy Rifkin via Std-Proposals
wrote:
> > Is std::arguments modifiable?
>
> From the paper: "std::arguments is entirely read-only in order to not
> introduce dangers surrounding global mutable state."
>
> Jeremy

Well, then the rest of my email applies: what's the path toward making it
modifiable?

A forever-read-only std::arguments is dead-on-arrival for Qt. We *must* modify
the arguments and remove options that we've processed, so the applications
don't have to.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering



--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals