fs::path::path

Constructors

Synopses

Declared in <util/fs.h>

Construct from a std::filesystem::path, for compatibility with standard-library APIs.

path(std::filesystem::path path);
» more...

Deleted to forbid std::string construction, which decodes locale-dependently on Windows.

path(std::string s) = delete;
» more...

Construct from a C string literal, which is safe as long as the literal is ASCII.

path(char const* c);
» more...

Parameters

NameDescription
pathThe standard path to move from.
sThe string that would be constructed from.
cThe null-terminated string to construct from.