{"id":16237,"url":"https://patchwork.libcamera.org/api/1.1/patches/16237/?format=json","web_url":"https://patchwork.libcamera.org/patch/16237/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220616142403.20723-2-laurent.pinchart@ideasonboard.com>","date":"2022-06-16T14:23:57","name":"[libcamera-devel,1/7] libcamera: yaml_parser: Use std::is_same_v<>","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"78eefcae47e254b60a7d1cc99920824e1ee1f1f8","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/16237/mbox/","series":[{"id":3181,"url":"https://patchwork.libcamera.org/api/1.1/series/3181/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3181","date":"2022-06-16T14:23:56","name":"libcamera: yaml_parser: Add iterator API","version":1,"mbox":"https://patchwork.libcamera.org/series/3181/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/16237/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/16237/checks/","tags":{},"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 A47A1C3273\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 16 Jun 2022 14:24:24 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9EE7765642;\n\tThu, 16 Jun 2022 16:24:21 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 22ECB600F0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 16 Jun 2022 16:24:19 +0200 (CEST)","from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 70FF3898;\n\tThu, 16 Jun 2022 16:24:18 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1655389461;\n\tbh=0KeW0Buaom75cIuO+HgipUaC0yUDEfXN25HJl3AYNWw=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=ZJ9W8H/gmJhBaQKsy5hiG17L2zrD+V8LvF4lyc8ZlBzfs35v3p9UlGBbfYuvXGeD/\n\t/5+df3KsY/jSoJOR2wXufXg3ZZXGngZQ9/oryrAht0jMZnVIqeiybQLHlaVtHV1i9P\n\tzZNEsSV0EH706iJRtcEd1z6fYyzcbZvbkucW7u3zpGx2MlET03tGzaFRc0tJdWLfwP\n\t9wureCbGl8KU3hKp1dc2/CKEpVOf3Z60Q3t4mn8OnZ3imfCPGc+3hR2vSCLPTVkPZB\n\twXxVEi8uuYf833YMGveYSAtXVBDutYASGY4ilCLu4l/8nflhbbMlNC3FjGWT+SA1v/\n\tya9F5tf7D8QmA==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1655389458;\n\tbh=0KeW0Buaom75cIuO+HgipUaC0yUDEfXN25HJl3AYNWw=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=qXv8Bo/TyU0vCmqcHjQFWQZSEmOX+qkAEKnGjq9XrUmwUnX49B11+5JKlx6izwgBB\n\tBhT4PWVlgN8T1zO8OD03dB3cIFJJQ7La1dip4GDFGqOHYshebeq6uxryeoYHa2bHHR\n\tNH+Cp6cQJq4eH62Q3OxiLa+5aNLcO5yFlMQMqMr4="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"qXv8Bo/T\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 16 Jun 2022 17:23:57 +0300","Message-Id":"<20220616142403.20723-2-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.35.1","In-Reply-To":"<20220616142403.20723-1-laurent.pinchart@ideasonboard.com>","References":"<20220616142403.20723-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 1/7] libcamera: yaml_parser: Use\n\tstd::is_same_v<>","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>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"As the YamlObject class is internal to libcamera, it can use the full\nC++17 API. Replace std::is_same<>::value with std::is_same_v<>.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/libcamera/internal/yaml_parser.h | 12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)","diff":"diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h\nindex be5f0914703f..29b7b218f0d9 100644\n--- a/include/libcamera/internal/yaml_parser.h\n+++ b/include/libcamera/internal/yaml_parser.h\n@@ -44,12 +44,12 @@ public:\n #ifndef __DOXYGEN__\n \ttemplate<typename T,\n \t\t typename std::enable_if_t<\n-\t\t\t std::is_same<bool, T>::value ||\n-\t\t\t std::is_same<double, T>::value ||\n-\t\t\t std::is_same<int32_t, T>::value ||\n-\t\t\t std::is_same<uint32_t, T>::value ||\n-\t\t\t std::is_same<std::string, T>::value ||\n-\t\t\t std::is_same<Size, T>::value> * = nullptr>\n+\t\t\t std::is_same_v<bool, T> ||\n+\t\t\t std::is_same_v<double, T> ||\n+\t\t\t std::is_same_v<int32_t, T> ||\n+\t\t\t std::is_same_v<uint32_t, T> ||\n+\t\t\t std::is_same_v<std::string, T> ||\n+\t\t\t std::is_same_v<Size, T>> * = nullptr>\n #else\n \ttemplate<typename T>\n #endif\n","prefixes":["libcamera-devel","1/7"]}