C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fold expression contains 'if constexpr'

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 04 Dec 2022 16:46:06 -0800
On Sunday, 4 December 2022 15:13:45 PST Frederick Virchanza Gotham via Std-
Proposals wrote:
> Note that my original function has "auto" as the return type, and so
> the "if else ladder" with the 'constexpr' keyword was able to pick out
> the correct return type.

That's completely orthogonal to the problem. It's a true statement, but
irrelevant.

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

Received on 2022-12-05 00:46:07