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>
This commit is contained in:
Laurent Pinchart
2020-10-26 21:15:11 +02:00
parent 7adf3a0698
commit 6cbdc28599
5 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -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_; }