bit_cast status

will wray wjwray@gmail.com
Mon Oct 29 18:40:00 GMT 2018


std::bit_cast was added to the C++ 20 draft this summer:
http://eel.is/c++draft/bit.cast

What's the status for inclusion in libstdc++?
Does anyone have a patch or plans to implement it?
Are there any blockers or implementation issues?

Existing implementations use memcpy so are not constexpr.
The std version will need compiler help to be constexpr.

Thanks, Will



More information about the Libstdc++ mailing list