fs/FileInfo: make constructor `explicit`
This commit is contained in:
parent
51c0a03e94
commit
f549c611ab
|
@ -30,7 +30,7 @@ class FileInfo {
|
|||
public:
|
||||
constexpr FileInfo() noexcept = default;
|
||||
|
||||
FileInfo(Path path, bool follow_symlinks=true) {
|
||||
explicit FileInfo(Path path, bool follow_symlinks=true) {
|
||||
if (!GetFileInfo(path, *this, follow_symlinks)) {
|
||||
#ifdef _WIN32
|
||||
throw FmtLastError("Failed to access {}", path);
|
||||
|
|
Loading…
Reference in New Issue