noeh_support.cpp 493 B

12345678910111213141516171819202122232425
  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. #include <boost/config.hpp>
  6. #include <iostream>
  7. #include <iomanip>
  8. #include <cstdlib>
  9. #ifdef BOOST_NO_EXCEPTIONS
  10. namespace boost {
  11. void throw_exception(const std::exception& e)
  12. {
  13. std::cout << e.what() << std::endl;
  14. std::abort();
  15. }
  16. }
  17. #endif