C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::argc std::argv (available to global constructors)

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Tue, 13 Jun 2023 14:12:20 +0100
On Tue, Jun 13, 2023 at 12:41 PM Tom Honermann <tom_at_[hidden]> wrote:
>
> This is being pursued as WG14 N2948 (Accessing the command line arguments outside of main()).
>
> Tom.


I finally got it working up on GodBolt:

    https://godbolt.org/z/bhbzjv5vs

Personally I'd prefer to have two global variables "int std::argc;"
and "char **std::argv;" instead of two functions.

Received on 2023-06-13 13:12:32