From patchwork Sun Jun 21 00:23:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 27005 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E7E95C3302 for ; Sun, 21 Jun 2026 00:23:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C9219656F7; Sun, 21 Jun 2026 02:23:10 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sxX2dxj0"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6FB12656DE for ; Sun, 21 Jun 2026 02:23:08 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-70f3-e800--a06.rev.dnainternet.fi [IPv6:2001:14ba:70f3:e800::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8AFDA268; Sun, 21 Jun 2026 02:22:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1782001351; bh=gRlSLhz/FUmkmd9f1DoYgigUOm4rFF5B4LHC0MVmD5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sxX2dxj05MduNlGKU/dKatRyeE5yBWE4CT4TrBy7AjWzaYn1sDLeOuzX+utiF2lGI 6Y51vQDFvzBErSkCF+mtcJitI7XrI1g608gj8BOeQYDfyLezVYH7FCRmPdUviFyZXQ JpFY7ya7iuDnSKtHOgzNsH3zss7/MFd7K6Qv8w6k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham Subject: [PATCH 1/4] libcamera: vector: Replace class with typename Date: Sun, 21 Jun 2026 03:23:02 +0300 Message-ID: <20260621002305.3763752-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260621002305.3763752-1-laurent.pinchart@ideasonboard.com> References: <20260621002305.3763752-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" libcamera uses "typename" instead of "class" to denote template parameter types. The vector class uses the latter, replace them with "typename" for consistency. Signed-off-by: Laurent Pinchart --- include/libcamera/internal/vector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libcamera/internal/vector.h b/include/libcamera/internal/vector.h index 093efafa8982..04ba5d847b7d 100644 --- a/include/libcamera/internal/vector.h +++ b/include/libcamera/internal/vector.h @@ -263,7 +263,7 @@ public: } private: - template + template static constexpr Vector apply(const Vector &lhs, const Vector &rhs, BinaryOp op) { Vector result; @@ -274,7 +274,7 @@ private: return result; } - template + template static constexpr Vector apply(const Vector &lhs, U rhs, BinaryOp op) { Vector result; @@ -285,7 +285,7 @@ private: return result; } - template + template Vector &apply(const Vector &other, BinaryOp op) { auto itOther = other.data_.begin(); @@ -295,7 +295,7 @@ private: return *this; } - template + template Vector &apply(U scalar, BinaryOp op) { std::for_each(data_.begin(), data_.end(),