[{"id":38500,"web_url":"https://patchwork.libcamera.org/comment/38500/","msgid":"<adTV0qGUFMADE-Pu@zed>","date":"2026-04-07T10:01:03","subject":"Re: [PATCH 1/2] Documentation: Update to C++20","submitter":{"id":143,"url":"https://patchwork.libcamera.org/api/people/143/","name":"Jacopo Mondi","email":"jacopo.mondi@ideasonboard.com"},"content":"Hi Laurent\n\nOn Mon, Apr 06, 2026 at 01:27:04AM +0300, Laurent Pinchart wrote:\n> libcamera has switched to C++20, update the coding style documentation\n> that still mentions C++17.\n>\n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\nReviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n\n> ---\n>  Documentation/coding-style.rst | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst\n> index e0864b78d4b7..5b90a43a6813 100644\n> --- a/Documentation/coding-style.rst\n> +++ b/Documentation/coding-style.rst\n> @@ -105,7 +105,7 @@ headers, and with double quotes for internal libcamera headers.\n>  C++ Specific Rules\n>  ------------------\n>\n> -The code shall be implemented in C++17, with the following caveats:\n> +The code shall be implemented in C++20, with the following caveats:\n>\n>  * Type inference (auto and decltype) shall be used with caution, to avoid\n>    drifting towards an untyped language.\n> --\n> Regards,\n>\n> Laurent Pinchart\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id B18EEBEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  7 Apr 2026 10:01:09 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4527362D7B;\n\tTue,  7 Apr 2026 12:01:09 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B27FE62846\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  7 Apr 2026 12:01:07 +0200 (CEST)","from ideasonboard.com (mob-109-113-47-41.net.vodafone.it\n\t[109.113.47.41])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1DEB66DC;\n\tTue,  7 Apr 2026 11:59:40 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"gTYKkgPr\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1775555980;\n\tbh=MmWcDViSzT7+dm3J14sFXldusieUSqcg6xKf2rbQJas=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=gTYKkgPrNmaccRVskfhCEe3LkRkgWL07057X8ESlwKD14+eI3IHzgVWIjWFaHma0q\n\twZxQunNTMS5RTBeErM7d83An/JBB/jxIAd7EMb4AZTYOBO+EwiqGq2plJfco/e82QS\n\ttC9UnhCa80VZySDv4QUdtSqDaLLN1OTmZmA2vSKk=","Date":"Tue, 7 Apr 2026 12:01:03 +0200","From":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Cc":"libcamera-devel@lists.libcamera.org","Subject":"Re: [PATCH 1/2] Documentation: Update to C++20","Message-ID":"<adTV0qGUFMADE-Pu@zed>","References":"<20260405222705.1238116-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","In-Reply-To":"<20260405222705.1238116-1-laurent.pinchart@ideasonboard.com>","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":38574,"web_url":"https://patchwork.libcamera.org/comment/38574/","msgid":"<ec202ff3-32e3-4683-ad74-ede78eccafe7@ideasonboard.com>","date":"2026-04-13T06:53:40","subject":"Re: [PATCH 1/2] Documentation: Update to C++20","submitter":{"id":216,"url":"https://patchwork.libcamera.org/api/people/216/","name":"Barnabás Pőcze","email":"barnabas.pocze@ideasonboard.com"},"content":"2026. 04. 06. 0:27 keltezéssel, Laurent Pinchart írta:\n> libcamera has switched to C++20, update the coding style documentation\n> that still mentions C++17.\n> \n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> ---\n\nReviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n\n\n>   Documentation/coding-style.rst | 2 +-\n>   1 file changed, 1 insertion(+), 1 deletion(-)\n> \n> diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst\n> index e0864b78d4b7..5b90a43a6813 100644\n> --- a/Documentation/coding-style.rst\n> +++ b/Documentation/coding-style.rst\n> @@ -105,7 +105,7 @@ headers, and with double quotes for internal libcamera headers.\n>   C++ Specific Rules\n>   ------------------\n>   \n> -The code shall be implemented in C++17, with the following caveats:\n> +The code shall be implemented in C++20, with the following caveats:\n>   \n>   * Type inference (auto and decltype) shall be used with caution, to avoid\n>     drifting towards an untyped language.","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 205F6BDCBD\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 13 Apr 2026 06:53:48 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9CAF762E60;\n\tMon, 13 Apr 2026 08:53:46 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 23A3E62E39\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 13 Apr 2026 08:53:44 +0200 (CEST)","from [192.168.33.49] (185.182.214.8.nat.pool.zt.hu [185.182.214.8])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2FC7B4BB;\n\tMon, 13 Apr 2026 08:52:12 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"BxbO8Y1A\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1776063132;\n\tbh=C2XFf8wlIEDxW7Nt9Da37UB85i7jJAjovKnQvMiqc/E=;\n\th=Date:Subject:To:References:From:In-Reply-To:From;\n\tb=BxbO8Y1ApHWd6PJSxpi6yw7o1bUScMo18J7ENWirekMv5eq6bClnee9oNSwg1c2om\n\tDT5Cl5UipTPIP8Bi4/+RuAMOp9BCJoVyW+SdZOaPQKpxSGll6yKR3YUXBdKMe9bSag\n\tXf53ErPQa56mbzn4pfjqQ1G2UjOggkGUbeBfXlso=","Message-ID":"<ec202ff3-32e3-4683-ad74-ede78eccafe7@ideasonboard.com>","Date":"Mon, 13 Apr 2026 08:53:40 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH 1/2] Documentation: Update to C++20","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","References":"<20260405222705.1238116-1-laurent.pinchart@ideasonboard.com>","From":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>","Content-Language":"en-US, hu-HU","In-Reply-To":"<20260405222705.1238116-1-laurent.pinchart@ideasonboard.com>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]