noexcept.hpp 637 B

12345678910111213141516171819
  1. /*=============================================================================
  2. Copyright (c) 2016 Paul Fultz II
  3. noexcept.hpp
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #ifndef BOOST_HOF_GUARD_DETAIL_NOEXCEPT_HPP
  8. #define BOOST_HOF_GUARD_DETAIL_NOEXCEPT_HPP
  9. #include <boost/hof/config.hpp>
  10. #if BOOST_HOF_HAS_NOEXCEPT_DEDUCTION
  11. #define BOOST_HOF_NOEXCEPT(...) noexcept(__VA_ARGS__)
  12. #else
  13. #define BOOST_HOF_NOEXCEPT(...)
  14. #endif
  15. #endif