Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch a time type to fs:: #64314

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flexbuffer_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ struct file_flexbuffer : parsed_flexbuffer {

bool is_stale() const override {
std::error_code ec;
std::filesystem::file_time_type mtime = fs::last_write_time( source_file_path_ );
fs::file_time_type mtime = fs::last_write_time( source_file_path_ );
if( ec ) {
// Assume yes out of date.
return true;
Expand Down Expand Up @@ -396,7 +396,7 @@ std::shared_ptr<parsed_flexbuffer> flexbuffer_cache::parse( fs::path json_source

std::error_code ec;
// If we got this far we can get the mtime.
std::filesystem::file_time_type mtime = fs::last_write_time( json_source_path, ec );
fs::file_time_type mtime = fs::last_write_time( json_source_path, ec );

return std::make_shared<file_flexbuffer>(
std::move( storage ),
Expand Down