Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
C++17 support allows us to use std::filesystem instead of the currently equivalent boost library calls. We should also investigate where std::filesystem could be used instead of a platform specific implementations.
Note: std::filesystem::last_write_time returns std::filesystem::file_time_type which uses a platform dependent clock. This makes it hard to replace the previous implementation as the time since epoch can be different in two systems, the conversion to time_t can be difficult and also out usage of time strings may be problematic. Cpp20 standardizes the std::filesystem::file_time_type with std::chrono::file_clock which solves these problems, so it may be better to implement this when we have full Cpp20 support.
Attachments
Issue Links
- links to