8 Feb
2010
8 Feb
'10
1:41 p.m.
signal_type::arg<0>::type
Thanks. Originally I tried the following: #include <boost/signals2.hpp> #include <boost/typeof/typeof.hpp> int main() { boost::signals2::signal<void (int)> onEvent; typedef BOOST_TYPEOF(onEvent) OnEvent; typedef OnEvent::first_argument_type first; } And it doesn't compile (MSVC9.0) Note that if I add 1 argument, it does compile: //... boost::signals2::signal<void (int, int)> onEvent; typedef OnEvent::first_argument_type first;