閑古鳥

オールドプログラマの日記。プログラミングとか病気(透析)の話とか。

2021-10-28から1日間の記事一覧

ルートディレクトリでhas_parentがfalseになると思っていた

ルートディレクトリでhas_parentがtrueになるの解釈違いだった— wata_d (@wata_d) 2021年10月27日 #include <filesystem> namespace fs = std::filesystem; int main() { fs::path path(R"(C:\Users\Public\Documents)"); while (path.has_parent_path()) { std::cout <<</filesystem>…