C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for a std::arguments proposal

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 15 Oct 2024 21:55:16 -0700
On Tuesday 15 October 2024 21:41:56 GMT-7 Tiago Freire wrote:
> > 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?

A copy of what? You didn't provide a way to create a std::arguments or
arguments_view from existing a string array in your paper. That would still be
sub-optimal, because we'd have to document:

"Do not EVER use std:arguments(). Instead, use
QCoreApplication::arguments_view(), which has the same interface but is
correct."
(becausw QCoreApplication::arguments() is already taken)

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

Received on 2024-10-16 04:55:20