]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/date_time/test/gregorian/testgreg_wstream.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / date_time / test / gregorian / testgreg_wstream.cpp
index 79b02e1f9b8fed436546b89d7199178ab3cd3910..08173fc8cdb1a201eeac7e31aee26e7dee5f10b6 100644 (file)
@@ -45,9 +45,9 @@ int main(){
 #ifndef BOOST_NO_STD_ITERATOR_TRAITS
   { 
     res = L"2003-Aug-21";
-    std::wstringstream wss(L"2003-Aug-21");
+    std::wstringstream wss2(L"2003-Aug-21");
     date testdate(not_a_date_time);
-    wss >> testdate;
+    wss2 >> testdate;
     check("date operator>>", to_simple_wstring(testdate) == res);
   }
 #else
@@ -66,9 +66,9 @@ int main(){
   res = L"August";
   check("greg_month as_long_wstring", ws == res);
   /*{ 
-    std::wstringstream wss(L"August");
+    std::wstringstream wss2(L"August");
     greg_month testmonth(not_a_date_time);
-    wss >> testmonth;
+    wss2 >> testmonth;
     check("greg_month operator>>", to_simple_wstring(testmonth) == res);
   }*/
   
@@ -83,9 +83,9 @@ int main(){
   res = L"Thursday";
   check("greg_day_of_week as_long_wstring", ws == res);
   /*{ 
-    std::wstringstream wss(L"Thu");
+    std::wstringstream wss2(L"Thu");
     greg_day_of_week testday(not_a_date_time);
-    wss >> testday;
+    wss2 >> testday;
     check("greg_day_of_week operator>>", to_simple_wstring(testday) == res);
   }*/
   
@@ -100,12 +100,12 @@ int main(){
   ws = to_iso_wstring(dp);
   check("date_period to_iso_string", ws == res);
   { 
-    std::wstringstream wss(L"[2003-Aug-21/2004-May-27]");
+    std::wstringstream wss2(L"[2003-Aug-21/2004-May-27]");
     res = L"[2003-Aug-21/2004-May-26]";
     // following line gives an ambiguous overload of op>>
     //date_period testperiod(date(not_a_date_time),date_duration(not_a_date_time));
     date_period testperiod(date(2003,Aug,21), date(2004,May,27));
-    wss >> testperiod;
+    wss2 >> testperiod;
     check("date_period operator>>", to_simple_wstring(testperiod) == res);
   }
   
@@ -115,9 +115,9 @@ int main(){
   check("date_duration", wss.str() == res);
   wss.str(L"");
   { 
-    std::wstringstream wss(L"280");
+    std::wstringstream wss2(L"280");
     date_duration testduration(not_a_date_time);
-    wss >> testduration;
+    wss2 >> testduration;
     check("date_duration operator>>", testduration.days() == 280);
   }