mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:30:05 +00:00 
			
		
		
		
	Warnings provider gcc fixes
This commit is contained in:
		
							parent
							
								
									a8da035566
								
							
						
					
					
						commit
						d34cd68471
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -90,9 +90,14 @@ WarningsProvider::LoadUpdatedFiles( | ||||||
| 
 | 
 | ||||||
| #if (__cpp_lib_chrono >= 201907L) | #if (__cpp_lib_chrono >= 201907L) | ||||||
|    namespace df = std; |    namespace df = std; | ||||||
|  | 
 | ||||||
|  |    static constexpr std::string_view kDateTimeFormat { | ||||||
|  |       "warnings_{:%Y%m%d_%H}.txt"}; | ||||||
| #else | #else | ||||||
|    using namespace date; |    using namespace date; | ||||||
|    namespace df = date; |    namespace df = date; | ||||||
|  | 
 | ||||||
|  | #   define kDateTimeFormat "warnings_%Y%m%d_%H.txt" | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|    std::vector< |    std::vector< | ||||||
|  | @ -112,9 +117,7 @@ WarningsProvider::LoadUpdatedFiles( | ||||||
| 
 | 
 | ||||||
|    while (currentHour <= now) |    while (currentHour <= now) | ||||||
|    { |    { | ||||||
|       static constexpr std::string_view dateTimeFormat { |       const std::string filename = df::format(kDateTimeFormat, currentHour); | ||||||
|          "warnings_{:%Y%m%d_%H}.txt"}; |  | ||||||
|       const std::string filename = df::format(dateTimeFormat, currentHour); |  | ||||||
|       const std::string url      = p->baseUrl_ + "/" + filename; |       const std::string url      = p->baseUrl_ + "/" + filename; | ||||||
| 
 | 
 | ||||||
|       logger_->trace("HEAD request for file: {}", filename); |       logger_->trace("HEAD request for file: {}", filename); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat