Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-11 07:34:45


"Tobias Schwinger" <tschwinger_at_[hidden]> wrote in message
news:d0rs1h$22j$1_at_sea.gmane.org...
>> is_same<
>> function_type_parameters< void(int,float) >::signal_type,
>> signal2<void, int, float>
> It is possible already:
No. You can unpack arguments, but you can't choose signal2
or signal3 and so on.

> IIRC there is no version of signal taking an MPL-Sequence.
> 'signal<my_function>' should work, though.

I meant a bit another thing.

//From your examples:
typedef void my_function(int);

typedef function_type_signature<my_function> my_signature;

typedef mpl::push_back<my_signature,float>::type my_modified_signature;

boost::signal<my_modified_signature::representee>. == boost::signal<void (int,
float)>
//You can't do the same for signalN!!!!!

--
Pavel Chikulaev 

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk