diff --git a/include/file.hpp b/include/file.hpp index cf54b9db..38ca3763 100644 --- a/include/file.hpp +++ b/include/file.hpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -48,7 +47,7 @@ public: * This should only be called once, and before doing any `->` operations. * Returns `nullptr` on error, and a non-null pointer otherwise. */ - File *open(std::filesystem::path const &path, std::ios_base::openmode mode) { + File *open(std::string const &path, std::ios_base::openmode mode) { if (path != "-") { return _file.emplace().open(path, mode) ? this : nullptr; } else if (mode & std::ios_base::in) {