Boost logo

Boost Users :

Subject: [Boost-users] How to skip a sub-directory with filesystem3::recursive_directory_iterator in case of exception?
From: Tan, Tom (Shanghai) (TTan_at_[hidden])
Date: 2011-04-12 02:02:02

>Again, I tried something like below.
>for (recursive_directory_iterator itr(root, ec), itr_end; itr!=itr_end;
> ... ;
> itr.increment(ec);
> if(ec) itr.pop();
> This time itr.pop() assertion fails because "pop() on
>recursive_directory_iterator with level < 1"
>Anybody got some advice? Thanks.

For others facing the same problem, I've reported it as a bug and
created Ticket #5403(
A fix was also attached

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at