![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Go to the source code of this file.
| #define ARENE_HAS_CONSTEXPR_BIT_CAST |
A platform support query indicating whether arene::base::bit_cast can be evaluated in a constant expression.
arene::base::bit_cast is constexpr only when the compiler provides __builtin_bit_cast . On toolchains without it (e.g. GCC 8), the implementation falls back to std::memcpy , which is not usable in a constant expression in C++14.
Usage:
The value of this query is determined as follows, in order of precedence:
__builtin_bit_cast is defined, it is ARENE_ON_BY_DEFAULT ARENE_OFF_BY_DEFAULT | #define ARENE_HAS_CONSTEXPR_BIT_CAST_I_ ARENE_OFF_BY_DEFAULT |