From patchwork Tue Apr 22 12:44:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 23203 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 849BCC327D for ; Tue, 22 Apr 2025 12:44:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2449E68ACA; Tue, 22 Apr 2025 14:44:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="RrJJG1Yg"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3B1C4617E3 for ; Tue, 22 Apr 2025 14:44:05 +0200 (CEST) Received: from pb-laptop.local (185.221.143.16.nat.pool.zt.hu [185.221.143.16]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8D8D1250 for ; Tue, 22 Apr 2025 14:41:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1745325717; bh=FCmD+7muEQP5Snl3eI9Zefv91OFNc5uKqLvcTe5YPew=; h=From:To:Subject:Date:From; b=RrJJG1YgejnHh5XeMn2Qb02eHUnK4aUOy7kolMeITxcTKdVhDXeLje3Wpi367vDeo eaICdR/pddE6e6LEW+gK7va6YKuQBartpZzuj/UCEIqxjDWgK+DBK78KjOBIM2pKan 5YXm6CzvVb+67efS0qiq8oLs6O5Ck8cqUO5OBBJ8= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1] libcamera: controls: Arrays of arrays are not supported Date: Tue, 22 Apr 2025 14:44:01 +0200 Message-ID: <20250422124401.29968-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.49.0 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" Arrays of arrays, even arrays of strings, are not supported by the current `ControlValue` mechanism, so disable them for now to trigger comptime errors if attempts are made to use them. Signed-off-by: Barnabás Pőcze --- include/libcamera/controls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 326452540..427517a02 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -121,7 +121,7 @@ struct control_type { }; template -struct control_type> : public control_type> { +struct control_type, std::enable_if_t>::size == 0>> : public control_type> { static constexpr std::size_t size = N; };