|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-04-02 20:07:11
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Sohail Somani
> Sent: Monday, April 02, 2007 2:22 PM
> To: boost-users_at_[hidden]
> 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
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