Ver Fonte

windows stupidity

David Rose há 23 anos atrás
pai
commit
ea84366328
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      panda/src/downloader/httpDate.cxx

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

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