Boost logo

Boost :

From: gchen (chengang31_at_[hidden])
Date: 2006-10-06 05:26:11

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;

Boost list run by bdawes at, gregod at, cpdaniel at, john at