Fix export.cpp compilation with MSVC (#1737)

This commit is contained in:
Cheng
2024-12-29 23:56:30 +09:00
committed by GitHub
parent 4ba0c24a8f
commit 8ecdfb718b
2 changed files with 8 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ using namespace mlx::core;
namespace {
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();
}
} // namespace