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::value> * = nullptr> R invokeMethod(R (T::*func)(FuncArgs...), ConnectionType type, - Args... args) + Args&&... args) { T *obj = static_cast(this); auto *method = new BoundMethodMember(obj, this, func, type);