From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0B38C433ED for ; Mon, 17 May 2021 15:18:34 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 36DAC60724 for ; Mon, 17 May 2021 15:18:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36DAC60724 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FkN7X57Ctz3bTX for ; Tue, 18 May 2021 01:18:32 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=jason.m.bills@linux.intel.com; receiver=) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FkN762nH1z2xv4 for ; Tue, 18 May 2021 01:18:08 +1000 (AEST) IronPort-SDR: nu0DQVFjA1lOsuJTw4JfeMa+vpTR5ymmhos4cK96jLaX295lWkLJnFJGu+R2NJlh19PHlaO0OW qdstWw3LceDw== X-IronPort-AV: E=McAfee;i="6200,9189,9987"; a="197404210" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="197404210" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 08:18:03 -0700 IronPort-SDR: eXvfjutzvvntSFjQmcHS1Rlss0219uyy/2O3HXrYO6JaOgTBjAJxtQQAgmkBCfmVQfrhHwDAHq v1J0mIusUhzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="630023084" Received: from linux.intel.com ([10.54.29.200]) by fmsmga005.fm.intel.com with ESMTP; 17 May 2021 08:18:03 -0700 Received: from [10.209.96.152] (jmbills-MOBL.amr.corp.intel.com [10.209.96.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 8684358033E for ; Mon, 17 May 2021 08:18:03 -0700 (PDT) Subject: Re: Time for C++20. To: openbmc@lists.ozlabs.org References: From: "Bills, Jason M" Message-ID: <0030cde6-7b48-2d21-1f26-629ca0ae661d@linux.intel.com> Date: Mon, 17 May 2021 08:18:03 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On 4/14/2021 1:11 PM, Patrick Williams wrote: > Hello. > > Per [1], as a project we've generally committed to using the latest C++ > standard. C++20 was released in early Sept. 2020 and already had pretty > decent compiler support at the time it was released. We're currently > using GCC10 and according to [2] it has support for nearly every C++20 > feature I could see us regularly wanting to use(*). It seems like it > is a reasonable time for us to move on to it. > > * - Except I recall seeing some mention of std::source_location being > useful to fix some of the issues with phosphor-logging, but that > won't be available until GCC11. I just remembered and was excited to finally use std::format only to find that it isn't available in GCC. Even the example code on the reference page fails to run: https://en.cppreference.com/w/cpp/utility/format/format. :) I couldn't find anywhere that GCC has plans to include std::format. Does anyone know if or when std::format might be added to GCC? >