Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / test / no_eh_test_support.cpp
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
16 void 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 {
26 void dummy_proc() {}
27 }} // namespace boost::detail
28
29 #endif