我想知道在c ++ 2a模式下g ++-trunk是否已经有可用的constexpr std::bit_cast或等效的东西。我需要这个来进行编译时检查。
constexpr
std::bit_cast
[根据cppreference,截至2019-11-29,尚未在任何主要的C ++编译器中实现std::bit_cast。