Namespaces
Variants
Actions

Talk:cpp/filesystem/path/append

From cppreference.com

Microsoft's std::experimental::filesystem::path (the version shipped with Visual Studio 2015) does not behave as specified above. Absolute paths are just concatenated and do not replace, as shown. Instead:

path("C:/foo") / path("C:/bar") yields C:\foo\C:bar, and

path("C:/foo") / path("/bar") yields C:\foo\bar.

Furthermore, paths without a drive specifier are considered relative--so "/bar" is considered a relative, not absolute path. — Preceding unsigned comment added by Jlidbeck (talkcontribs)

Well yes, a 2015 implementation of the filesystem TS doesn't incorporate changes made in 2017 for the C++17 IS. T. Canens (talk) 22:40, 15 January 2018 (PST)
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=Talk:cpp/filesystem/path/append&oldid=98242"

AltStyle によって変換されたページ (->オリジナル) /