Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
2964 days ago
reinterpret_cast in C++ has essentially the same rules, with exceptions made for const qualifiers and such, as well as void
, char
, and std::byte *. Use a memcpy instead.