[C++] C++20: use std::bit_cast
Open
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
Assessment
This issue has not been assessed yet.