gulrak / filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
MIT License
1.34k stars 173 forks source link

Error when concatenating paths #45

Closed robiwano closed 4 years ago

robiwano commented 4 years ago

OS: Windows 10

Describe the bug The base path to which a sub path is to be concatenated, is not considered at all.

To Reproduce

using filesystem = ghc::filesystem;
auto base_path = filesystem::path("/binaries");
auto path = base_path / filesystem::path("./sub_path");

path is now "/sub_path"

Expected behavior path should be "/binaries/sub_path".

robiwano commented 4 years ago

Never mind, got it to work.