From 39d4deba1e95580dcc6789aeecd5630893d30d69 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 8 Dec 2024 02:39:55 +0000 Subject: [PATCH] Convert filesystem path to std::string explicitly --- tests/load_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/load_tests.cpp b/tests/load_tests.cpp index 3a7556b571..b972f08d76 100644 --- a/tests/load_tests.cpp +++ b/tests/load_tests.cpp @@ -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") {