From 72c3deffbb6062713c1ba043a9b249445d65dcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 19 Mar 2025 12:31:37 +0100 Subject: [PATCH] libcamera: controls: Disallow arrays of arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arrays of arrays, even arrays of strings, are not supported by the current `ControlValue` mechanism, so disable them for now to trigger compile time errors if attempts are made to use them. Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- 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 4bfe9615c..2ae4ec3d4 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -120,7 +120,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; };