#include #include #include #include using namespace std; using boost::serialization::make_nvp; struct SerializeMe{ template void serialize(Archive& ar){ ar & make_nvp("x",x); ar & make_nvp("y",y); } double x; double y; }; using namespace std; int main() { SerializeMe to_serialize; to_serialize.x = 0; to_serialize.y = 1; ostringstream out; { boost::archive::xml_oarchive ar(out); to_serialize.serialize(ar); } cout<