Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1559522rdd; Thu, 11 Jan 2024 02:57:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFE1NbL4UE4soEC9SsYcaWU2NcO/qbxzX4jmM4pHIYMJx1oSRia4VxaoipE29w4s9PkzZjq X-Received: by 2002:a05:6a20:1607:b0:19a:4aed:a10c with SMTP id l7-20020a056a20160700b0019a4aeda10cmr764445pzj.10.1704970639403; Thu, 11 Jan 2024 02:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704970639; cv=none; d=google.com; s=arc-20160816; b=HU0XIgURZQJcnK21hx/Zwbq9k4wYZNCKmpJ+hQeUZJBBVfvb9LIxDMBlQWLvTdqLPT As/SwpDqQKtGOL1Ua4p4pionPMqrjKJpy/xKnrxH1F7VpZ19KDnzQ39Ybq2H0hhAvtT1 scfKLiskL6s+7vC7jJPdW+rZmYonJm2aocTZDDC+psJdC/s1oFkVSAUpP+0y9PrGSMUn lJIStpiuHXYGkABOYQm96w99axgoYHdhmGXmF+XYZXZmgbwL9HmyZYkfnjH5fYbuQ/gl bksC0jTtRE+4WBH/ZQpKtAmoKwA+Zug1OuDyUpnG46F8wpz2RvRSVOrBZbHsjwXjrhqP F9iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=5dIC4YOxW3puzkGtWuEVT4Nr9zyyNjs/7yil9gqa73I=; fh=7r3Ab1CUfAh0AcvUPM//cc5694Y6dmqL0qrxv+pHsto=; b=UsG7ety9RWOXDrfNoRIHRDYRUzeNOXdivoigNqneH8Pvk50YpaanmyEzoj8Q5hOvBj E/+LKjBXkXZzD5lgvKEILVBgyH1Jqv7aTdnsmQ5qUCVnTUTIv4odeOvIm63ASl9giU7t q/AXXDKcE4/oWa+QLrmdzORukyKE5cGEcP/EDD2x77fD2e0upr3Kr5JjeG4bPOCHww4o EPAA9PaJECDJZAFqa165LchR9rlMA2zMKfDuLY4lUFG/Usva8s1f/3MMqVuPf+VdACnQ qDF7W4jdIhnxNjRaIZePboV6htTu1bPmwFNHpOWSmSRkm8eOf8+gjPvYmJrSuSK87t9u SSdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fD5LF6ZK; spf=pass (google.com: domain of linux-kernel+bounces-23431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bf4-20020a17090b0b0400b0028c7a5d0a88si3500157pjb.85.2024.01.11.02.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:57:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fD5LF6ZK; spf=pass (google.com: domain of linux-kernel+bounces-23431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 139D1282871 for ; Thu, 11 Jan 2024 10:57:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A45E114F79; Thu, 11 Jan 2024 10:56:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fD5LF6ZK" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7750614F61 for ; Thu, 11 Jan 2024 10:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5587af6ae5cso1063388a12.3 for ; Thu, 11 Jan 2024 02:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704970569; x=1705575369; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=5dIC4YOxW3puzkGtWuEVT4Nr9zyyNjs/7yil9gqa73I=; b=fD5LF6ZK6B8RcIvSM4+UYSh39O4WM9BuRoZLbv0pZnY9ExHluBIcVG+oW773yDID93 Ovf7jXkHiUG1hNfiKPtBYpp7j0iymnpaeE1cutmG9xvC70RRxtzomEc/c/bdIHgrmVAg k6AAgLbGD9/pNm4WDzPIEMNQZIHaZ/nd0c/LF+hoVzFgz+HtWdugxUQB/4jso6Hubukz 7HT3WU0KWm/t+SomGMciOMl3zzmyro4tnot44ByQvrvQchSDz+3qPcS6gF3AqTvBsqP+ ePddid/XZjgdaSF0nc2ME3gVUH4mrKjEJW2K7K+kLClS5hqUvLjzZrnMwGA43+dfz2ll F/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970569; x=1705575369; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5dIC4YOxW3puzkGtWuEVT4Nr9zyyNjs/7yil9gqa73I=; b=dwvw5HdifL51gY0XnDWgVAE1mvTr+r5ZDEma3OHvy/z1xXeUsCFrrsCmcbBwHB6vsL tW/AnKvJiXm4r0D1XmSDgUoFJR3JfZxKEyHIu/DUp6kkAWtKFKximJozwZsPcCZ6/m65 AH7klsiE7ytZ7EMzab4qvKwKPK3g2f3luW+JIZbZm93/k9dfwjaxtfakS7Rjvf1DcwuX amGO5YeK5bieGtQeCxV3FrPCkLNBPj14T8Z9DV2DR4TyNO0Fhi/Lt6hNBzX8IFa4vSUm v/++2GdDmI6RUL1+LvBXHi4ZJpR2xhf29KSetYX3JH1NPz1wuIvm07v7ZyA4qRR3QXOp S7Sw== X-Gm-Message-State: AOJu0YzsEkUUk/pzRROzlHOai9IwK4F+uTRjFsoijoaHI9iPW+tCBlQr afM1nXcW32uEDcOHmXi/ZA== X-Received: by 2002:aa7:d488:0:b0:558:ad7b:f049 with SMTP id b8-20020aa7d488000000b00558ad7bf049mr130760edr.51.1704970569528; Thu, 11 Jan 2024 02:56:09 -0800 (PST) Received: from p183 ([46.53.248.125]) by smtp.gmail.com with ESMTPSA id j14-20020a50ed0e000000b005550192159bsm468577eds.62.2024.01.11.02.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:56:09 -0800 (PST) Date: Thu, 11 Jan 2024 13:56:07 +0300 From: Alexey Dobriyan To: "H. Peter Anvin" Cc: Jason Gunthorpe , Neal Gompa , jirislaby@kernel.org, dhowells@redhat.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, kent.overstreet@linux.dev Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline > SFINAE giving inscrutable errors is why I'm saying C++20, > since "concept" means you can get usable error messages. I'd say concepts are irrelevant for the kernel where standard library is tightly controlled by the same people who write rest of the kernel and no external users. static_assert() is all you need.