Files

45 lines
875 B
C++

/*
Copyright 2019 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef ACTIV_BOOST_ALIGN_DETAIL_THROW_EXCEPTION_HPP
#define ACTIV_BOOST_ALIGN_DETAIL_THROW_EXCEPTION_HPP
#include <ActivBoost/config.hpp>
#if defined(ACTIV_BOOST_NO_EXCEPTIONS)
#include <exception>
#endif
namespace Boost {
#if defined(ACTIV_BOOST_NO_EXCEPTIONS)
ACTIV_BOOST_NORETURN void throw_exception(const std::exception&);
#endif
namespace alignment {
namespace detail {
#if !defined(ACTIV_BOOST_NO_EXCEPTIONS)
template<class E>
ACTIV_BOOST_NORETURN inline void
throw_exception(const E& error)
{
throw error;
}
#else
ACTIV_BOOST_NORETURN inline void
throw_exception(const std::exception& error)
{
Boost::throw_exception(error);
}
#endif
} /* detail */
} /* alignment */
} /* boost */
#endif