Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-04-03 11:11:53


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_at_[hidden] on behalf of Robert Ramey
Sent: Mon 4/2/2007 7:07 PM
To: boost-users_at_[hidden]
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;
};



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net