This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bit_cast status


On Mon, 29 Oct 2018 at 18:40, will wray <wjwray@gmail.com> wrote:
>
> 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?

Not as far as I know.

> Are there any blockers or implementation issues?

Just that it needs compiler help.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]