]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/date_time/test/posix_time/testtime_serialize.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / date_time / test / posix_time / testtime_serialize.cpp
index f5daaaa6a60679e45e05a4d9497f347f6228a98b..4d50534a070da14c1c6f82f419395c55dc9f4732 100644 (file)
@@ -49,6 +49,7 @@ int main(){
   
   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)
@@ -80,7 +81,9 @@ int main(){
     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);
@@ -109,6 +112,7 @@ int main(){
     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);