]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/histogram/test/throw_exception.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / histogram / test / throw_exception.hpp
1 // Copyright 2019 Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifdef BOOST_NO_EXCEPTIONS
8
9 #include <cstdlib> // std::abort
10 #include <exception>
11 #include <iostream>
12
13 namespace boost {
14 // dummy implementation for user-defined function from boost/throw_exception.hpp
15 inline void throw_exception(std::exception const& e) {
16 std::cerr << e.what() << std::endl;
17 std::abort();
18 }
19 } // namespace boost
20
21 #endif