C++ Logo

std-proposals

Advanced search

Re: [std-proposals] ^^operator [was: Re: New draft proposal: Add "%s" (two-digit truncated-integer seconds) as a std::format conversion specifier for std::chrono time types.]

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Thu, 4 May 2023 10:54:21 +0200
Should be:

 
auto operator^^(auto A, auto B)

{

    if(A && !B)

        return A;

    if(B && !A)

        return B;

    return nil;

}

Received on 2023-05-04 08:54:23