Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
adrianN
7y ago
0 comments
Share
Ugh, that violates strict aliasing, does it not?
0 comments
default
newest
oldest
_0w8t
7y ago
I suppose it can, but in practice it works with any sane compiler that reasonably deals with reinterpret_cast and aliasing as long as aliasing requirements for the stub and the real thing are the same. The latter can be enforced with static asserts.
j
/
k
navigate · click thread line to collapse