Date: Sun, 13 Mar 2022 22:23:41 +0300
---------- Forwarded message ---------
فرستنده: Farid Mehrabi <farid.mehrabi_at_[hidden]>
Date: یکشنبه ۱۳ مارس ۲۰۲۲، ۲۲:۲۲
Subject: Re: [std-discussion] P0781 on command line arguments and standard
entry point.
To: Jens Maurer <Jens.Maurer_at_[hidden]>
Basically you need to capture the arguments in a span of pointers. But the
accessor functions need to be of strin_view type to minimize risk of
misusage. The 'main' function can be put in a header forwarding its
parameter to the actual entry point function, which is defined in the only
cpp file that includes main header.
Regards,
FM.
در تاریخ یکشنبه ۱۳ مارس ۲۰۲۲، ۲۲:۰۴ Jens Maurer <Jens.Maurer_at_[hidden]> نوشت:
> On 13/03/2022 18.57, Farid Mehrabi via Std-Discussion wrote:
> > Hi,
> > Please consider this solution too. It is just an illustration. But
> serves the purpose.
> > https://github.com/OptimumCpp/CPP-Entry-Point <
> https://github.com/OptimumCpp/CPP-Entry-Point>
>
> Please quote the paper title in your e-mail so that I can see at first
> glance whether that's a topic that interests me.
>
> Also, please explain a little bit about your alternative approach
> in your e-mail, instead of just giving a pointer to some repository.
>
> Thanks,
> Jens
>
>
فرستنده: Farid Mehrabi <farid.mehrabi_at_[hidden]>
Date: یکشنبه ۱۳ مارس ۲۰۲۲، ۲۲:۲۲
Subject: Re: [std-discussion] P0781 on command line arguments and standard
entry point.
To: Jens Maurer <Jens.Maurer_at_[hidden]>
Basically you need to capture the arguments in a span of pointers. But the
accessor functions need to be of strin_view type to minimize risk of
misusage. The 'main' function can be put in a header forwarding its
parameter to the actual entry point function, which is defined in the only
cpp file that includes main header.
Regards,
FM.
در تاریخ یکشنبه ۱۳ مارس ۲۰۲۲، ۲۲:۰۴ Jens Maurer <Jens.Maurer_at_[hidden]> نوشت:
> On 13/03/2022 18.57, Farid Mehrabi via Std-Discussion wrote:
> > Hi,
> > Please consider this solution too. It is just an illustration. But
> serves the purpose.
> > https://github.com/OptimumCpp/CPP-Entry-Point <
> https://github.com/OptimumCpp/CPP-Entry-Point>
>
> Please quote the paper title in your e-mail so that I can see at first
> glance whether that's a topic that interests me.
>
> Also, please explain a little bit about your alternative approach
> in your e-mail, instead of just giving a pointer to some repository.
>
> Thanks,
> Jens
>
>
Received on 2022-03-13 19:23:54