Boost class/struct serialization to byte array
- by Dave18
does boost library provide functions to pack the class/struct data into a byte array to shorten the length of serialized data? Currently i'm using stringstream to get the serialized data, for example -
struct data
{
std::string s1;
std::string s2;
int i;
};
template <typename Archive>
void serialize(Archive &ar, data &d,…