Boost logo

Boost Users :

Subject: Re: [Boost-users] [signals2] analysing the signature
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2010-02-08 10:46:43


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.




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net