C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Use optional<T> as though it were T

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Wed, 28 Jun 2023 11:14:01 +0100
On Wed, Jun 28, 2023 at 10:57 AM Jonathan Wakely via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> And what has all this code got to do with std -proposals?


My proposal is that the code could be replaced with something like:

    std::delayed_construction<T> g_obj;

In this thread, we are discussing how this new feature could be
implemented, and if there is a worthwhile implementation.

Received on 2023-06-28 10:14:13