
3 Apr
2007
3 Apr
'07
12:08 a.m.
-----Original Message----- From: Sohail Somani
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_binary_object(&the_ptr_,sizeof(the_ptr_)));
Oh duh, nevermind this will never be portable.