binary serialization, what's missing

I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ? Any help appreciated. Best regards, Ta, Avi

Avi Bahra wrote:
I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ?
If boost.serialization *crashes*, then it's clearly a bug, regardless of anything else. Please file a ticket with a minimal program that reproduces the crash. Also attach the backtrace. (To the best of my knowledge, text and binary archive have exactly same features) - Volodya

Avi Bahra wrote:
I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ?
Are the underlying streams opened as binary? Jeff

They are designed to be interchangable. Are you sure that the binary stream is
opened with "ios::binary"?
Robert Ramey
"Avi Bahra"
participants (4)
-
Avi Bahra
-
Jeff Flinn
-
Robert Ramey
-
Vladimir Prus