diff --git a/include/libcamera/base/signal.h b/include/libcamera/base/signal.h index efb591bc..841e4b4c 100644 --- a/include/libcamera/base/signal.h +++ b/include/libcamera/base/signal.h @@ -63,7 +63,11 @@ public: #ifndef __DOXYGEN__ template::value> * = nullptr> + std::enable_if_t::value +#if __cplusplus >= 201703L + && std::is_invocable_v +#endif + > * = nullptr> void connect(T *obj, Func func, ConnectionType type = ConnectionTypeAuto) { Object *object = static_cast(obj); @@ -71,7 +75,11 @@ public: } template::value> * = nullptr> + std::enable_if_t::value +#if __cplusplus >= 201703L + && std::is_invocable_v +#endif + > * = nullptr> #else template #endif