1 // Copyright John Maddock 2015. 2 // Use, modification and distribution are subject to the 3 // Boost 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/config.hpp> 7 #include <iostream> 8 #include <iomanip> 9 #include <cstdlib> 10 11 12 #ifdef BOOST_NO_EXCEPTIONS 13 14 namespace boost { 15 throw_exception(const std::exception & e)16 void throw_exception(const std::exception& e) 17 { 18 std::cout << e.what() << std::endl; 19 std::abort(); 20 } 21 22 23 } 24 25 #endif 26