updated build system
This commit is contained in:
		
							
								
								
									
										6
									
								
								support/3rd_party/src/utils/file.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								support/3rd_party/src/utils/file.cpp
									
									
									
									
										vendored
									
									
								
							| @@ -76,13 +76,13 @@ auto file::move_to(std::filesystem::path new_path) -> bool { | ||||
|   if (not error_) { | ||||
|     path_ = new_path; | ||||
|     if (reopen) { | ||||
|       *this = std::move(open_file(path_)); | ||||
|       *this = open_file(path_); | ||||
|     } | ||||
|     return true; | ||||
|   } | ||||
|  | ||||
|   if (reopen) { | ||||
|     *this = std::move(open_file(path_)); | ||||
|     *this = open_file(path_)); | ||||
|   } | ||||
|   return false; | ||||
| } | ||||
| @@ -139,7 +139,7 @@ auto file::truncate(std::size_t size) -> bool { | ||||
|  | ||||
|   std::filesystem::resize_file(path_, size, error_); | ||||
|   if (reopen) { | ||||
|     *this = std::move(open_file(path_)); | ||||
|     *this = open_file(path_); | ||||
|   } | ||||
|  | ||||
|   return not error_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user