Pack required boost code together.
[xy_vsfilter.git] / src / thirdparty / boost_1_47_0 / boost / detail / lightweight_main.hpp
blobe6514b9f92254fe2fbdd72176b5711a703142131
1 // boost/detail/lightweight_main.hpp -------------------------------------------------//
3 // Copyright Beman Dawes 2010
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 #include <iostream>
9 #include <exception>
11 //--------------------------------------------------------------------------------------//
12 // //
13 // exception reporting main() that calls cpp_main() //
14 // //
15 //--------------------------------------------------------------------------------------//
17 int cpp_main(int argc, char* argv[]);
19 int main(int argc, char* argv[])
21 try
23 return cpp_main(argc, argv);
26 catch (const std::exception& ex)
28 std::cout
29 << "\nERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR\n"
30 << "\n****************************** std::exception *****************************\n"
31 << ex.what()
32 << "\n***************************************************************************\n"
33 << std::endl;
35 return 1;