Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ckjellqv
· 1y ago · 0 comments
It should be well-defined with reinterpret_cast<uint32_t&> though.
Comments
[–]
LegionMammal978
1y ago
No, reinterpret_cast doesn't change the type of the underlying object. The rule in [basic.lval]/11 (against accessing casted values) applies to all glvalues, whether they come from pointers or references.