From 6cbdc2859963e17bc897a4022f1d68170477d888 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 26 Oct 2020 21:15:11 +0200 Subject: libcamera: Use helper variable template for type traits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C++17 introduces helper variable templates for type traits, allowing shortening std::is_foo::value to std::is_foo_v. Use them through the code base. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/bound_method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libcamera/bound_method.h') diff --git a/include/libcamera/bound_method.h b/include/libcamera/bound_method.h index 95a95653..feac51da 100644 --- a/include/libcamera/bound_method.h +++ b/include/libcamera/bound_method.h @@ -63,7 +63,7 @@ public: } virtual ~BoundMethodBase() = default; - template::value> * = nullptr> + template> * = nullptr> bool match(T *obj) { return obj == obj_; } bool match(Object *object) { return object == object_; } -- cgit v1.2.1