
8 Feb
2010
8 Feb
'10
8:46 a.m.
On Monday 08 February 2010, Igor R wrote:
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;
first_argument_type/second_argument_type only exist for 2 argument signals. 1 argument signals just have argument_type. IIRC, thats how stuff in the functors in the STL look.