#include namespace bs2 = boost::signals2; template class custom_signal { public: typedef typename bs2::signal_type >::type type; }; int main() { custom_signal::type mysignal; return 0; }