
12 Nov
2009
12 Nov
'09
7:34 p.m.
AMDG elizabeta petreska wrote:
Hello everybody This is my first post to the list. Can I serialize C++ function pointer ?
Not that I know of.
I search around and found that it could not be done ( although I am not sure ). If it can not be done, whats the explanation about it ?
If you serialize a function pointer, when you deserialize it, it should point to the exact same function. This is very hard to guarantee. For instance, if you recompile the program, the address of a function can change. This would make any archives containing a function pointer unreadable. In Christ, Steven Watanabe