C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 04 Jul 2023 09:30:20 -0700
On Tuesday, 4 July 2023 07:44:01 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> This may sound like an over-simplification, but what if the 'dot'
> operator and the 'arrow' operator were swapped for a new type
> "std::optional_direct".

And what happens if T has operator->()?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-07-04 16:30:23