1 /////////////////////////////////////////////////////////////////////////////// 2 // Copyright 2016 John Maddock. Distributed under the Boost 3 // Software License, Version 1.0. (See accompanying file 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 #include <boost/throw_exception.hpp> 7 #include <boost/config.hpp> 8 9 #ifdef BOOST_NO_EXCEPTIONS 10 11 #include <iostream> 12 #include <iomanip> 13 14 namespace boost { 15 throw_exception(std::exception const & e)16void throw_exception(std::exception const& e) 17 { 18 std::cerr << "Terminating with exception: " << e.what() << std::endl; 19 } 20 21 } // namespace boost 22 23 #else 24 25 namespace boost { namespace detail { dummy_proc()26void dummy_proc() {} 27 }} // namespace boost::detail 28 29 #endif 30