Re: [Boost-users] [Serialization] Non-default constructor and template class
15 Jun
2015
15 Jun
'15
8:11 p.m.
you should be able to simply define a private default constructor, if boost::serialization::acess is declared as a friend of your class. There is no need to initialize variables that are in your serialize() function, as Boost.Serialization should set > their values after default construction. So in most cases the default constructor may be empty and is trivial to implement, while it can not be called by any external entity (except if it is also declared „friend“).
Thanks Beet, That makes it sound like overriding load_construct_data() and save_construct_data() is almost never necessary. In what cases would it be needed? Kurt
3453
Age (days ago)
3453
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mccall, Kurt E. (JSC-EG411)