summaryrefslogtreecommitdiff
path: root/include/libcamera/object.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-02-16 02:10:10 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-02-18 02:15:25 +0200
commitb5eff18f1aef980fa7eb55184996710a6fc9523e (patch)
tree65625ff6322213128f7311e278dd5d48d63a83b7 /include/libcamera/object.h
parent68daa9302f90833ce345cb33ffcf075f23cbfc9a (diff)
libcamera: Use C++14 std::*_t type traits
C++14 introduced useful type traits helpers named std::*_t as aliases to std::*<...>::type. Use them to simplify the code. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/object.h b/include/libcamera/object.h
index 4d16f3f2..9a3dd070 100644
--- a/include/libcamera/object.h
+++ b/include/libcamera/object.h
@@ -30,7 +30,7 @@ public:
void postMessage(std::unique_ptr<Message> msg);
template<typename T, typename R, typename... FuncArgs, typename... Args,
- typename std::enable_if<std::is_base_of<Object, T>::value>::type * = nullptr>
+ typename std::enable_if_t<std::is_base_of<Object, T>::value> * = nullptr>
R invokeMethod(R (T::*func)(FuncArgs...), ConnectionType type,
Args... args)
{