Date: Wed, 06 Sep 2023 19:09:27 -0700
On Wednesday, 6 September 2023 01:17:20 PDT Frederick Virchanza Gotham via
Std-Proposals wrote:
> On Tue, Sep 5, 2023 at 7:54 PM Thiago Macieira wrote:
> > Solution: move from the return type to a parameter passed by reference.
>
> Please edit this GodBolt to show me what you're on about:
>
> https://godbolt.org/z/h6T1Po65e
https://godbolt.org/z/xhWEW7Pxh
If you want to avoid the overhead of std::optional, we can have a
"std::mandatory" that allows for delayed construction, but requires the object
to have been constructed.
Std-Proposals wrote:
> On Tue, Sep 5, 2023 at 7:54 PM Thiago Macieira wrote:
> > Solution: move from the return type to a parameter passed by reference.
>
> Please edit this GodBolt to show me what you're on about:
>
> https://godbolt.org/z/h6T1Po65e
https://godbolt.org/z/xhWEW7Pxh
If you want to avoid the overhead of std::optional, we can have a
"std::mandatory" that allows for delayed construction, but requires the object
to have been constructed.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering
Received on 2023-09-07 02:09:29