6 ms·
It should be well-defined with reinterpret_cast<uint32_t&> though.
by ckjellqv 2y ago
It should be well-defined with reinterpret_cast<uint32_t&> though.
- LegionMammal978 2y agoNo, 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.