Y
Hacker News
new
|
ask
|
show
|
jobs
by
LegionMammal978
531 days 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.