static_assert.hpp 549 B

12345678910111213141516
  1. // Copyright 2023 Christian Mazakas
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef BOOST_UNORDERED_DETAIL_STATIC_ASSERT_HPP
  5. #define BOOST_UNORDERED_DETAIL_STATIC_ASSERT_HPP
  6. #include <boost/config.hpp>
  7. #if defined(BOOST_HAS_PRAGMA_ONCE)
  8. #pragma once
  9. #endif
  10. #define BOOST_UNORDERED_STATIC_ASSERT(...) \
  11. static_assert(__VA_ARGS__, #__VA_ARGS__)
  12. #endif // BOOST_UNORDERED_DETAIL_STATIC_ASSERT_HPP