#include #include int main() { try { for (boost::filesystem::recursive_directory_iterator i("c:\\"), end; i != end; ++i) ; } catch (const std::exception& e) { std::cout << e.what() << std::endl; } return 0; }