mirror of
https://github.com/boostorg/core.git
synced 2025-05-09 14:57:46 +00:00
Disable bit_cast_test_cx when __builtin_bit_cast is not available
This commit is contained in:
parent
5a3b4df5de
commit
bf17035a2d
@ -4,6 +4,9 @@
|
||||
// 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>
|
||||
|
||||
@ -11,10 +14,11 @@
|
||||
|
||||
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__)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user