Parcourir la source

windows stupidity

David Rose il y a 23 ans
Parent
commit
ea84366328
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      panda/src/downloader/httpDate.cxx

+ 3 - 1
panda/src/downloader/httpDate.cxx

@@ -280,7 +280,9 @@ input(istream &in) {
     return false;
     return false;
   }
   }
 
 
-  (*this) = HTTPDate(date);
+  // Visual C++ has problems with "(*this) = HTTPDate(date)".
+  HTTPDate new_date(date);
+  (*this) = new_date;
   return is_valid();
   return is_valid();
 }
 }