Files
externals/linux/include/ActivBoost/math/tools/nothrow.hpp
T
2023-12-15 13:15:08 -05:00

28 lines
737 B
C++

// (C) Copyright Antony Polukhin 2022.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef ACTIV_BOOST_MATH_TOOLS_NOTHROW_HPP
#define ACTIV_BOOST_MATH_TOOLS_NOTHROW_HPP
#include <ActivBoost/math/tools/is_standalone.hpp>
#ifndef ACTIV_BOOST_MATH_STANDALONE
#include <ActivBoost/config.hpp>
#define ACTIV_BOOST_MATH_NOTHROW ACTIV_BOOST_NOEXCEPT_OR_NOTHROW
#else // Standalone mode - use noexcept or throw()
#if __cplusplus >= 201103L
#define ACTIV_BOOST_MATH_NOTHROW noexcept
#else
#define ACTIV_BOOST_MATH_NOTHROW throw()
#endif
#endif
#endif // ACTIV_BOOST_MATH_TOOLS_NOTHROW_HPP