Re:[boost] [serialization] cyclic references

7 May
2004
7 May
'04
4:33 p.m.
Francois Fath wrote:
I have difficulties when serializing two objects pointing to each other. The generated archive is fine (I can see both references in it), but when deserializing, only one is restored. In the attached example, I have a collection of nodes, each one is pointing to the previous and to the next node. When deserializing, only the ->next references are restored, all the ->previous are NULL.
Hmmm - I would have expect to get a "pointer_conflict" exception when the archive is being created - see test_cyclic_ptrs. Robert Ramey
7709
Age (days ago)
7709
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Ramey