How to skip a sub-directory with filesystem3::recursive_directory_iterator in case of exception?

12 Apr
2011
12 Apr
'11
6:02 a.m.
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(https://svn.boost.org/trac/boost/ticket/5403). A fix was also attached
5121
Age (days ago)
5121
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tan, Tom (Shanghai)