Boost logo

Boost Users :

From: Alexander Katasonov (katasonov_av_at_[hidden])
Date: 2004-11-01 03:08:56


It is possible to serialize variant template class using boost serialization
library?
I couldn't do it directly, like this

boost::variant<int, int, int> var;

std::ofstream ofs("./out.xml");
boost::archive::xml_oarchive oa(ofs);
oa << boost::serialization::make_nvp("variant", var);
ofs.close();


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net