
6 Nov
2009
6 Nov
'09
12:08 a.m.
Consider something like so: struct A { ...? }; struct B { std::list<A> items; }; struct C { A const* ptr_to_item_in_B_items; }; Serializing B is easy. Serialization of C ... not so much. The naive approach did not work because it wants a non-const pointer. Having read posts about the problem it seems the serialization library expects to modify the data pointed to, but I don't need or want that...I just want to recover the structure layout. Possible? Impossible?