From 559909668ccccbe2c20b4b80181af1e86295e7e1 Mon Sep 17 00:00:00 2001 From: ryouze <98982999+ryouze@users.noreply.github.com> Date: Tue, 24 Sep 2024 03:29:10 +0200 Subject: [PATCH] Remove unused headers, revert to fix "error C2440". --- src/core/io.hpp | 1 - tests/test_all.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/io.hpp b/src/core/io.hpp index 37b0b07..33f3e7d 100644 --- a/src/core/io.hpp +++ b/src/core/io.hpp @@ -8,7 +8,6 @@ #include // for std::size_t #include // for std::filesystem -#include // for std::runtime_error #include // for std::string #include // for std::vector diff --git a/tests/test_all.cpp b/tests/test_all.cpp index a97505a..54002bf 100644 --- a/tests/test_all.cpp +++ b/tests/test_all.cpp @@ -167,7 +167,8 @@ int test_args::paths() } // Store the string representation of the directory path - const char *fake_argv[] = {TEST_EXECUTABLE_NAME, temp_dir.get().c_str()}; + const std::string temp_dir_str = temp_dir.get().string(); + const char *fake_argv[] = {TEST_EXECUTABLE_NAME, temp_dir_str.c_str()}; const core::args::Args args(2, const_cast(fake_argv)); // Compare the filepaths found by Args