std::ostringstream oss;
+ {
// NOTE: DATE_TIME_XML_SERIALIZE is only used in testing and is
// defined in the testing Jamfile
#if defined(DATE_TIME_XML_SERIALIZE)
check("Error writing to archive: " + s + "\nWritten data: \"" + oss.str() + "\"", false);
return printTestStats();
}
+ }
+ {
std::istringstream iss(oss.str());
#if defined(DATE_TIME_XML_SERIALIZE)
archive::xml_iarchive ia(iss);
check("Error readng from archive: " + s + "\nWritten data: \"" + oss.str() + "\"", false);
return printTestStats();
}
+ }
check("ptime", pt == pt2);
check("special_values ptime (nadt)", sv_pt1 == sv_pt3);