1 | #include <iostream>
|
---|
2 | #include <boost/filesystem.hpp>
|
---|
3 |
|
---|
4 | int main()
|
---|
5 | {
|
---|
6 | try
|
---|
7 | {
|
---|
8 | for (boost::filesystem::recursive_directory_iterator i("c:\\"), end; i != end; ++i)
|
---|
9 | ;
|
---|
10 | }
|
---|
11 | catch (const std::exception& e)
|
---|
12 | {
|
---|
13 | std::cout << e.what() << std::endl;
|
---|
14 | }
|
---|
15 |
|
---|
16 | return 0;
|
---|
17 | }
|
---|
18 |
|
---|