I am using boost filesystem library to traverse directory. The function I wrote is to search a file in a directory and all its subdirectories.
I am using the following code to traverse the directory.
directory_iterator iter(dir_path), end_iter;
for(; iter!= end_iter; ++iter)

For most of the directories, this works beautifully. But when I try to search c:\
The program terminates with exception.
Anybody knowing what is the problem and how to avoid that?
Thanks