C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Floating an idea: int main(std::span<std::string_view> args)

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 09 Sep 2024 04:44:18 -0700
On Saturday 7 September 2024 14:41:43 GMT-7 Andrey Semashev via Std-Proposals
wrote:
> cstring_view also aren't there, unless you're willing to mandate its
> binary representation as a single pointer and legalize type punning.

Right.

But a main(std::span<std::cstring_view>) syntax that implements that by
compiler magic would be more acceptable, as the runtime and stack space cost
are O(1). Anyway, <session> is far more interesting.

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

Received on 2024-09-09 11:44:28