Skip to content

Commit

Permalink
Disable bit_cast_test_cx when __builtin_bit_cast is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jun 1, 2023
1 parent 5a3b4df commit bf17035
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/bit_cast_test_cx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include <boost/core/bit.hpp>
#include <boost/cstdint.hpp>

#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>

#if defined(BOOST_NO_CXX11_CONSTEXPR)

BOOST_PRAGMA_MESSAGE( "Test skipped because BOOST_NO_CXX11_CONSTEXPR is defined" )

#else
#elif !defined(BOOST_CORE_HAS_BUILTIN_BIT_CAST)

#include <boost/core/bit.hpp>
#include <boost/cstdint.hpp>
BOOST_PRAGMA_MESSAGE( "Test skipped because BOOST_CORE_HAS_BUILTIN_BIT_CAST is not defined" )

#else

#define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)

Expand Down

0 comments on commit bf17035

Please sign in to comment.