mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:20:04 +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) | ||||
|    namespace df = std; | ||||
| 
 | ||||
|    static constexpr std::string_view kDateTimeFormat { | ||||
|       "warnings_{:%Y%m%d_%H}.txt"}; | ||||
| #else | ||||
|    using namespace date; | ||||
|    namespace df = date; | ||||
| 
 | ||||
| #   define kDateTimeFormat "warnings_%Y%m%d_%H.txt" | ||||
| #endif | ||||
| 
 | ||||
|    std::vector< | ||||
|  | @ -112,9 +117,7 @@ WarningsProvider::LoadUpdatedFiles( | |||
| 
 | ||||
|    while (currentHour <= now) | ||||
|    { | ||||
|       static constexpr std::string_view dateTimeFormat { | ||||
|          "warnings_{:%Y%m%d_%H}.txt"}; | ||||
|       const std::string filename = df::format(dateTimeFormat, currentHour); | ||||
|       const std::string filename = df::format(kDateTimeFormat, currentHour); | ||||
|       const std::string url      = p->baseUrl_ + "/" + filename; | ||||
| 
 | ||||
|       logger_->trace("HEAD request for file: {}", filename); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat