1 // Boost hello_filesystem.cpp --------------------------------------------------------// 2 3 // Copyright Beman Dawes 2014 4 5 // Distributed under the Boost Software License, Version 1.0. 6 // See http://www.boost.org/LICENSE_1_0.txt 7 8 // Library home page: http://www.boost.org/libs/filesystem 9 10 //--------------------------------------------------------------------------------------// 11 // // 12 // In researching filesystem issues it is convenient to have a program that can be // 13 // quickly modified to test reported problems. That's the purpose of this file and // 14 // its associated Visual Studio and Boost.Build infrastructure. // 15 // // 16 //--------------------------------------------------------------------------------------// 17 18 #include <boost/config/warning_disable.hpp> 19 20 #include <boost/filesystem.hpp> 21 22 #include <iostream> 23 #include <boost/core/lightweight_test.hpp> 24 #include <boost/detail/lightweight_main.hpp> 25 26 using std::cout; 27 using std::endl; 28 namespace fs = boost::filesystem; 29 30 //------------------------------------ cpp_main --------------------------------------// 31 cpp_main(int argc,char * argv[])32int cpp_main(int argc, char* argv[]) 33 { 34 cout << "Hello, filesystem world" << endl; 35 36 BOOST_TEST(fs::exists(".")); 37 38 return ::boost::report_errors(); 39 } // cpp_main 40