summaryrefslogtreecommitdiff
path: root/include/libcamera/bound_method.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-26 21:15:11 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-28 03:32:58 +0200
commit6cbdc2859963e17bc897a4022f1d68170477d888 (patch)
treecc58ed2ab2abc10fd9b2eae1e021d083ee01aa88 /include/libcamera/bound_method.h
parent7adf3a069839c1b2c440b07ca2911ffc2d39e816 (diff)
libcamera: Use helper variable template for type traits
C++17 introduces helper variable templates for type traits, allowing shortening std::is_foo<T>::value to std::is_foo_v<T>. Use them through the code base. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/bound_method.h')
-rw-r--r--include/libcamera/bound_method.h2
1 files changed, 1 insertions, 1 deletions
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<typename T, typename std::enable_if_t<!std::is_same<Object, T>::value> * = nullptr>
+ template<typename T, typename std::enable_if_t<!std::is_same_v<Object, T>> * = nullptr>
bool match(T *obj) { return obj == obj_; }
bool match(Object *object) { return object == object_; }