After having read #79, I started writing explicitly the types when calling signal::connect(...). But as I have some long type names, I looked for an other solution.
I remembered that Qt defines some helper (see qoverload.h), but the parameters list have still to be written...
So, I finally write some functions to enforce their detection, like this one:
template<typename T_return, typename T_obj, typename T_obj2, typename... T_arg>
inline decltype(auto)
connect(sigc::signal<T_return(T_arg...)>& signal, T_obj& obj, T_return (T_obj2::*fun)(T_arg...))
{
return signal.connect(sigc::mem_fun<T_return, T_obj, T_obj2, T_arg...>(obj, fun));
}
Any feedback/comment are welcome.