Fixed path filters on Windows

This commit is contained in:
Bartek Kryza
2023-01-07 11:07:00 +00:00
parent 1cbc3e697d
commit f1f6051cf7
3 changed files with 9 additions and 3 deletions

View File

@@ -37,7 +37,11 @@ namespace clanguml::common::model {
enum class source_file_t { kDirectory, kHeader, kImplementation };
struct fs_path_sep {
#ifdef _WIN32
static constexpr std::string_view value = "\\";
#else
static constexpr std::string_view value = "/";
#endif
};
using filesystem_path = common::model::path<fs_path_sep>;
@@ -107,7 +111,7 @@ public:
res /= name();
if (is_absolute_)
res = "/" / res;
res = fs_path_sep::value / res;
else
res = base / res;