Convert filesystem path to std::string explicitly (#1672)

This commit is contained in:
Cheng 2024-12-08 13:10:06 +09:00 committed by GitHub
parent d92ea094f1
commit 7c10c93a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@
using namespace mlx::core;
std::string get_temp_file(const std::string& name) {
return std::filesystem::temp_directory_path().append(name);
return std::filesystem::temp_directory_path().append(name).string();
}
TEST_CASE("test save_safetensors") {