C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: adding a more C++ compliant main function
From: Nevin Liber (nevin_at_[hidden])
Date: 2020-01-29 15:42:04


On Wed, Jan 29, 2020 at 2:39 PM Matthew Woehlke via Std-Discussion <
std-discussion_at_[hidden]> wrote:

> On 29/01/2020 11.37, Vishal Oza via Std-Discussion wrote:
> > Are there any issues with extending the main function with more C++
> > compliant parameters? Some example I would like to include are:
> >
> > int main(std::vector<std::string>> args);
> > int main(std::span<std:: std::string>> args);
>
> It's come up before. I don't know if it's ever gotten as far as a paper.
>

P0781 A Modern C++ Signature for main <https://wg21.link/P0781>

Reviewed in Albuquerque:

Straw polls: Strongly For | For | Neutral | Against | Strongly Against
A modern signture for main? 3 | 6 | 2 | 12 | 8
A trivial library solution for iterating parameters? 2 | 12 | 14 | 2 | 1
A non- main -based way of fetching command line arguments? 7 | 9 | 9 | 1 | 2

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden] <nevin_at_[hidden]>>
+1-847-691-1404


STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups