Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TuxSH
8 days ago
|
parent
|
context
|
favorite
| on:
An incoherent Rust
> But reinterpret_cast isn't valid in a constexpr scope.
std::bit_cast is
help
debugnik
8 days ago
[–]
Oh cool, and it behaves like memcpy, not like pointer aliasing! I'm stuck with C++14 at work so I missed that one.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
std::bit_cast is