
6 Oct
2006
6 Oct
'06
9:26 a.m.
A follow-up: It looks like recursive_directory_iterator doesn't work with any empty folder, this code also cause an assertion failure. I think the equal(...) function of recursive_directory_iterator should do more check. int main(int argc, char *argv[]) { fs::path p("c:\\empty_folder"); // a empty folder fs::recursive_directory_iterator iter(p); if (iter != fs::recursive_directory_iterator()) iter->status(); // <== cause a assertion failure return 0; }