in the tutorial it is explained how to split load and save functions, but the boost_serialization_split_member() declaration was inside the class.
How do you declare a class being split to two functions externally?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The section of the docs labeled, “Splitting serialize into save/load” explains how to do this. Basically, you have two template functions,
saveandload, for the type in question, defined in theboost::serializationnamespace. Then you use theBOOST_SERIALIZATION_SPLIT_FREEmacro.