|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-01-21 11:34:49
Try the following. See the "rationale" in the documentation for an explanation.
Robert Ramey
...
int main()
{
const derived dc(5); // try adding "const" here
{
std::ofstream ofile("test.xml");
boost::archive::xml_oarchive oa(ofile);
oa << boost::serialization::make_nvp("test", dc);
}
return 0;
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