//boost::serialization struct blank { int m_id; std::string m_message; template<typename archive> void serialize(archive& ar, const short version) { ar & m_id; ar & m_message; } }; blank info; info.m_id = 1; info.m_name = "Rasul"; std::stringstream ss; boost::archive::binary_oarchive out_archive(ss); out_archive << info;
//boost::property_tree boost::property_tree::ptree root; root.put("id", 2); root.put("name", "Rasul");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)