]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/multiprecision/test/no_eh_test_support.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / multiprecision / test / no_eh_test_support.cpp
CommitLineData
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
14namespace boost {
15
92f5a8d4
TL
16void 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
25namespace boost { namespace detail {
26void dummy_proc() {}
27}} // namespace boost::detail
7c673cae
FG
28
29#endif