]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
7c673cae FG |
6 | #include <boost/throw_exception.hpp> |
7 | #include <boost/config.hpp> | |
8 | ||
9 | #ifdef BOOST_NO_EXCEPTIONS | |
10 | ||
11 | #include <iostream> | |
92f5a8d4 | 12 | #include <iomanip> |
7c673cae FG |
13 | |
14 | namespace boost { | |
15 | ||
92f5a8d4 TL |
16 | void throw_exception(std::exception const& e) |
17 | { | |
18 | std::cerr << "Terminating with exception: " << e.what() << std::endl; | |
7c673cae FG |
19 | } |
20 | ||
92f5a8d4 TL |
21 | } // namespace boost |
22 | ||
7c673cae FG |
23 | #else |
24 | ||
92f5a8d4 TL |
25 | namespace boost { namespace detail { |
26 | void dummy_proc() {} | |
27 | }} // namespace boost::detail | |
7c673cae FG |
28 | |
29 | #endif |