Hacker News new | ask | show | jobs
by ckjellqv 531 days ago
It should be well-defined with reinterpret_cast<uint32_t&> though.
1 comments

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.