no_eh_test_support.cpp 671 B

1234567891011121314151617181920212223242526272829
  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. #include <boost/throw_exception.hpp>
  6. #include <boost/config.hpp>
  7. #ifdef BOOST_NO_EXCEPTIONS
  8. #include <iostream>
  9. #include <iomanip>
  10. namespace boost {
  11. void throw_exception(std::exception const& e)
  12. {
  13. std::cerr << "Terminating with exception: " << e.what() << std::endl;
  14. }
  15. } // namespace boost
  16. #else
  17. namespace boost { namespace detail {
  18. void dummy_proc() {}
  19. }} // namespace boost::detail
  20. #endif