C++17 string_view inputs, add set_cwd, homedir more robust #8
Closed
scivision
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For performance & robustness, use C++17 std::string_view for C++ inputs generally. This is generally better than
const std::string&.add
set_cwd()function which is just like chdir()Make get_homedir, used by expanduser, canonical, etc. use backup methods if env var HOME or USERPROFILE isn't set.
as_posix() isn't implicitly used by canonical and similar anymore. The user is responsible to use appropriate escaping and file separators.
This discussion was created from the release C++17 string_view inputs, add set_cwd, homedir more robust.
All reactions