id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10380,filesystem directory iterator throws on increment,Richard ,Beman Dawes,"The following code throws an exception: std::for_each( recursive_directory_iterator(path_to_root_dir), recursive_directory_iterator(), []( const directory_entry& de ) { remove_all( de.path() ); } ); if path_to_root_dir contains only a single sub-directory. This happens in the increment operator of the iterator at line 791 (boost/filesystem/operations.hpp: m_stack.push(directory_iterator(m_stack.top()->path())); The sub-directory is successfully deleted. The exception is thrown after the deletion when the iterator is incremented",Bugs,new,To Be Determined,filesystem,Boost 1.55.0,Problem,,,