已经有constexpr std :: bit_cast与g ++一起使用

问题描述 投票:1回答:1

我想知道在c ++ 2a模式下g ++-trunk是否已经有可用的constexpr std::bit_cast或等效的东西。我需要这个来进行编译时检查。

c++ c++20
1个回答
1
投票

[根据cppreference,截至2019-11-29,尚未在任何主要的C ++编译器中实现std::bit_cast

© www.soinside.com 2019 - 2024. All rights reserved.