Boost logo

Boost :

Subject: Re: [boost] determine first arg of callable
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-05-15 07:25:45


On 15/05/13 10:35, Oliver Kowalke wrote:
> I need some help to extract the type of a callable which is passed as
> argument to the ctor of X.
>
> struct X
> {
> template< typename Fn >
> X( Fn fn) {
> ... code which evaluates Fn and extracts the type of the first arg
> of Fn
> }
> };

You can't do that.
Just change your code to not require it.


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