Boost logo

Boost :

From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-05-10 04:43:19


----- Original Message -----
From: "Marco Costalba" <mcostalba_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, May 10, 2008 10:32 AM
Subject: Re: [boost] [announce] Multi signature boost::function v1.0

> On Sat, May 10, 2008 at 3:17 AM, Giovanni Piero Deretta
> <gpderetta_at_[hidden]> wrote:
>>

>> 2) If I have a polymorphic function object, can I store a single
>> instance of this object
>> and specify multiple signatures? i.e.
>>
>> struct foo_t { template<class T> void(T){...} } foo;
>>
>
> Sorry but the line
>
> struct foo_t { template<class T> void(T){} } foo;
>
> does not compile for me. Probably I'm missing something obvious.
>

Try with
 struct foo_t { template<class T> void operator()(T){} } foo;

I think that this was the intent of Giovanni

Best

Vicente


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