|
Boost Users : |
Subject: Re: [Boost-users] [signals2] analysing the signature
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-08 08:41:22
> 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;
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