
3 Apr
2007
3 Apr
'07
12:07 a.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sohail Somani Sent: Monday, April 02, 2007 2:22 PM To: boost-users@lists.boost.org Subject: [Boost-users] [serialization] Serialize function pointers
Hi,
Is it possible to serialize function pointers? I'm trying to serialize this guy:
struct f { typedef void(*function_t)(); function_t the_ptr_; };
This was what I did to get my test to compile and run (same process, so it will work), which is totally not portable :) ar & boost::serialization::make_nvp("the_ptr_",boost::serialization::make_bin ary_object(&the_ptr_,sizeof(the_ptr_))); Any suggestions would be much appreciated. Thanks, Sohail