简体   繁体   English

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

[英]Is there already a constexpr std::bit_cast to use with g++

I wonder if there is a usable constexpr std::bit_cast or equivalent already for g++-trunk in c++2a mode.我想知道在 c++2a 模式下是否有可用的constexpr std::bit_cast或等效的 g++-trunk 。 I need this for a compile-time-check.我需要这个来进行编译时检查。

根据cppreferencestd::bit_cast日, std::bit_cast尚未在任何主要 C++ 编译器中实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM