Well the thing I wanted to avoid was having to write a new function object everytime for each permutation of argument/return types (i.e. a template). I think its possible if one uses function lookup. If I ever get un-lazy enough to try it, I might just post it here!
-----Original Message-----
From: boost-users-bounces@lists.boost.org on behalf of Robert Ramey
Sent: Mon 4/2/2007 7:07 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [serialization] Serialize function pointers
Sohail Somani wrote:
This is an interesting question which I think might be doable in an elegant
way.
// Suppose we have a few functions with the following signature void f(int);
struct function_object {
virtual void operator()(int) = 0;
};