28 lines · plain
1// (C) Copyright Antony Polukhin 2022.2// Use, modification and distribution are subject to the3// Boost Software License, Version 1.0. (See accompanying file4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)5 6#ifndef BOOST_MATH_TOOLS_NOTHROW_HPP7#define BOOST_MATH_TOOLS_NOTHROW_HPP8 9#include <boost/math/tools/is_standalone.hpp>10 11#ifndef BOOST_MATH_STANDALONE12 13#include <boost/config.hpp>14 15#define BOOST_MATH_NOTHROW BOOST_NOEXCEPT_OR_NOTHROW16 17#else // Standalone mode - use noexcept or throw()18 19#if __cplusplus >= 201103L20#define BOOST_MATH_NOTHROW noexcept21#else22#define BOOST_MATH_NOTHROW throw()23#endif24 25#endif26 27#endif // BOOST_MATH_TOOLS_NOTHROW_HPP28