apache / apache/arrow

[C++] C++20: use std::bit_cast

Open
#48,589 4 comments 0 reactions 0 assignees View on GitHub
Component: C++ good-second-issue Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

We use the `memcpy` trick in various cases to bit-convert between different types of the same width, we can now use the C++20 `std::bit_cast` API.

### Component(s)

C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.