6 #ifndef SERIALIZE_TO_FROM_STRING_HPP 7 #define SERIALIZE_TO_FROM_STRING_HPP 9 #include <boost/iostreams/stream.hpp> 29 std::stringstream strm;
55 boost::iostreams::stream<boost::iostreams::array_source>
56 istrm(s.c_str(), s.length());
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
std::string serialize_to_string(const T &t)
Serializes a object to a string.
void deserialize_from_string(const std::string &s, T &t)
Deserializes a object from a string.
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.