diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-26 21:15:11 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-28 03:32:58 +0200 |
commit | 6cbdc2859963e17bc897a4022f1d68170477d888 (patch) | |
tree | cc58ed2ab2abc10fd9b2eae1e021d083ee01aa88 /include/libcamera/object.h | |
parent | 7adf3a069839c1b2c440b07ca2911ffc2d39e816 (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/object.h')
-rw-r--r-- | include/libcamera/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/object.h b/include/libcamera/object.h index a1882f05..423208db 100644 --- a/include/libcamera/object.h +++ b/include/libcamera/object.h @@ -32,7 +32,7 @@ public: void postMessage(std::unique_ptr<Message> msg); template<typename T, typename R, typename... FuncArgs, typename... Args, - typename std::enable_if_t<std::is_base_of<Object, T>::value> * = nullptr> + typename std::enable_if_t<std::is_base_of_v<Object, T>> * = nullptr> R invokeMethod(R (T::*func)(FuncArgs...), ConnectionType type, Args... args) { |