
10 May
2008
10 May
'08
8:43 a.m.
----- Original Message ----- From: "Marco Costalba" <mcostalba@gmail.com> To: <boost@lists.boost.org> 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@gmail.com> 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