Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-04-02 20:08:04


> -----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.


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