File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ ghc::filesystem::path create_estimate(T &value,
77
77
ghc::filesystem::create_directories (output_filename_.parent_path ());
78
78
}
79
79
80
- toml_out_.open (output_filename_);
80
+ toml_out_.open (output_filename_. string () );
81
81
82
82
if (!toml_out_) {
83
83
throw std::runtime_error (" Failed to open TOML file for writing" );
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ std::string calculate_hash_from_file(const ghc::filesystem::path &file_path) {
6
6
throw std::invalid_argument (" File '" + file_path.string () + " ' not found" );
7
7
}
8
8
9
- std::ifstream file_ (file_path, std::ios_base::in | std::ios_base::binary);
9
+ std::ifstream file_ (file_path. string () , std::ios_base::in | std::ios_base::binary);
10
10
11
11
const std::string hash_ = digestpp::sha1 ().absorb (file_).hexdigest ();
12
12
@@ -78,7 +78,7 @@ bool file_exists( const std::string &Filename )
78
78
}
79
79
80
80
std::string read_token (const ghc::filesystem::path &token_path){
81
- std::ifstream key_ (token_path, std::ios::in);
81
+ std::ifstream key_ (token_path. string () , std::ios::in);
82
82
std::string key_str_;
83
83
key_ >> key_str_;
84
84
key_.close ();
You can’t perform that action at this time.
0 commit comments