From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 269AC3858C3A; Wed, 20 Oct 2021 05:48:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 269AC3858C3A Received: by mail-oi1-x231.google.com with SMTP id g125so8299900oif.9; Tue, 19 Oct 2021 22:48:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=onXYvBUifh7BDXQe+H8nukotalZim9RshTszUmQDQXM=; b=BN55zGb1ZPbok/NKt/eiehRg+Da94zL6wvTMCOgfZsicFoiJPckx3S+QwGPqAD4opF upWaFfROHWnychJpneljcWr3JxRIN1+baP7Uiv7TcI4qVuhy/DCCs6IgN4nbu/zzwB+e /K42G72d4t1976a/VeUAhdxRic1tpz11ubV/T/Opt9rVpJezOkdb/nDfl+OLGYA78YA3 HmR2D0ZtUdbgx8YY0ZeJkQFnwR36HhrJmx+M2mtidVTPcTCTRz5PTf+FoxFlYFl9M2Zp 1t6NjTwtrh4baMKl0aC96jtSS0GHBvuvjhI4cFMVCdf/w+Y32P+lgk69gtHo1MVFQL3J 3F0w== X-Gm-Message-State: AOAM531dJh2aPOwdzFuuhWGmITXtQLL+JMeIQNEeHTYZaLOrvb+CwpPh 7t/QleeS7gFMXjA3A65N1n7VrYQPGMdp6saUU6XVdmI/ X-Google-Smtp-Source: ABdhPJzOn8+eLBYSNnxto19o+gcyJU3IV5Oacvp5qR//O2JS3EI6wDyHgcVGufYRlKwfT0limPxZzQ/Wu+6DiqRuG4I= X-Received: by 2002:a05:6808:10d5:: with SMTP id s21mr7949220ois.23.1634708886435; Tue, 19 Oct 2021 22:48:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tim Song Date: Wed, 20 Oct 2021 00:47:30 -0500 Message-ID: Subject: Re: [committed] libstdc++: Implement monadic operations for std::optional (P0798R8) To: Jonathan Wakely Cc: "libstdc++" , gcc-patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2021 05:48:08 -0000 On Tue, Oct 19, 2021 at 9:05 AM Jonathan Wakely via Gcc-patches wrote: > > +constexpr bool > +test_copy_elision() > +{ > + return true; > +} > + > +static_assert( test_copy_elision() ); > + This isn't much of a test :)