Serialized object's constructor calling question

10 May
2011
10 May
'11
9:10 p.m.
Hi, how do you make boost serialization call other constructor of your classes than the default constructor without arguments? Is this possible? The reason i need to do this is because the class being serialized also has reference that needs to be initialized at constructor. thx

11 May
11 May
3:31 a.m.
On Wed, May 11, 2011 at 12:10 AM, Jari
I found that you need to use load_construct_data for this. But i have around 20 classes , do i need load_construct_data for each of them? If i could just use one function for all it would be great , as they are derived from same base class and have same kind of constructor. . does anybody know? thx
5121
Age (days ago)
5122
Last active (days ago)
2 comments
2 participants
participants (2)
-
Jari
-
Robert Ramey