Constructors

Synopses

Declared in <util/fs.h>

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

path(std::filesystem::path path);

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

path(std::string s) = delete;

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

path(char const* c);

Parameters

Name

Description

path

The standard path to move from.

s

The string that would be constructed from.

c

The null‐terminated string to construct from.

Created with MrDocs