diff --git a/include/libcamera/object.h b/include/libcamera/object.h index 86e0f7265..21b70460b 100644 --- a/include/libcamera/object.h +++ b/include/libcamera/object.h @@ -29,13 +29,15 @@ public: void postMessage(std::unique_ptr msg); - template::value>::type * = nullptr> - void invokeMethod(void (T::*func)(Args...), ConnectionType type, Args... args) + template::value>::type * = nullptr> + void invokeMethod(void (T::*func)(FuncArgs...), ConnectionType type, + Args... args) { T *obj = static_cast(this); BoundMethodBase *method = - new BoundMemberMethod(obj, this, func, type); - void *pack = new typename BoundMemberMethod::PackType{ args... }; + new BoundMemberMethod(obj, this, func, type); + void *pack = new typename BoundMemberMethod::PackType{ args... }; method->activatePack(pack, true); }