diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/base/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/base/object.h b/include/libcamera/base/object.h index 25dcbc04..eef1a2c9 100644 --- a/include/libcamera/base/object.h +++ b/include/libcamera/base/object.h @@ -34,7 +34,7 @@ public: template<typename T, typename R, typename... FuncArgs, typename... Args, typename std::enable_if_t<std::is_base_of<Object, T>::value> * = nullptr> R invokeMethod(R (T::*func)(FuncArgs...), ConnectionType type, - Args... args) + Args&&... args) { T *obj = static_cast<T *>(this); auto *method = new BoundMethodMember<T, R, FuncArgs...>(obj, this, func, type); |