]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/math/tools/throw_exception.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / tools / throw_exception.hpp
CommitLineData
1e59de90
TL
1// (C) Copyright Matt Borland 2021.
2// Use, modification and distribution are subject to the
3// Boost 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#ifndef BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP
7#define BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP
8
9#include <boost/math/tools/is_standalone.hpp>
10
11#ifndef BOOST_MATH_STANDALONE
12
13#include <boost/throw_exception.hpp>
14#define BOOST_MATH_THROW_EXCEPTION(expr) boost::throw_exception(expr);
15
16#else // Standalone mode - use standard library facilities
17
18#define BOOST_MATH_THROW_EXCEPTION(expr) throw expr;
19
20#endif // BOOST_MATH_STANDALONE
21
22#endif // BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP