From patchwork Thu Jun 16 14:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16237 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 A47A1C3273 for ; Thu, 16 Jun 2022 14:24:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9EE7765642; Thu, 16 Jun 2022 16:24:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655389461; bh=0KeW0Buaom75cIuO+HgipUaC0yUDEfXN25HJl3AYNWw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ZJ9W8H/gmJhBaQKsy5hiG17L2zrD+V8LvF4lyc8ZlBzfs35v3p9UlGBbfYuvXGeD/ /5+df3KsY/jSoJOR2wXufXg3ZZXGngZQ9/oryrAht0jMZnVIqeiybQLHlaVtHV1i9P zZNEsSV0EH706iJRtcEd1z6fYyzcbZvbkucW7u3zpGx2MlET03tGzaFRc0tJdWLfwP 9wureCbGl8KU3hKp1dc2/CKEpVOf3Z60Q3t4mn8OnZ3imfCPGc+3hR2vSCLPTVkPZB wXxVEi8uuYf833YMGveYSAtXVBDutYASGY4ilCLu4l/8nflhbbMlNC3FjGWT+SA1v/ ya9F5tf7D8QmA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 22ECB600F0 for ; Thu, 16 Jun 2022 16:24:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qXv8Bo/T"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 70FF3898; Thu, 16 Jun 2022 16:24:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655389458; bh=0KeW0Buaom75cIuO+HgipUaC0yUDEfXN25HJl3AYNWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qXv8Bo/TyU0vCmqcHjQFWQZSEmOX+qkAEKnGjq9XrUmwUnX49B11+5JKlx6izwgBB BhT4PWVlgN8T1zO8OD03dB3cIFJJQ7La1dip4GDFGqOHYshebeq6uxryeoYHa2bHHR NH+Cp6cQJq4eH62Q3OxiLa+5aNLcO5yFlMQMqMr4= 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 Subject: [libcamera-devel] [PATCH 1/7] libcamera: yaml_parser: Use std::is_same_v<> 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" As the YamlObject class is internal to libcamera, it can use the full C++17 API. Replace std::is_same<>::value with std::is_same_v<>. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Han-Lin Chen --- include/libcamera/internal/yaml_parser.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h index be5f0914703f..29b7b218f0d9 100644 --- a/include/libcamera/internal/yaml_parser.h +++ b/include/libcamera/internal/yaml_parser.h @@ -44,12 +44,12 @@ public: #ifndef __DOXYGEN__ template::value || - std::is_same::value || - std::is_same::value || - std::is_same::value || - std::is_same::value || - std::is_same::value> * = nullptr> + std::is_same_v || + std::is_same_v || + std::is_same_v || + std::is_same_v || + std::is_same_v || + std::is_same_v> * = nullptr> #else template #endif