News for hackers. Stuff that matters.
Re:C++ Headers are Expensive by adrianN on Tuesday January 08, 2019 @04:46AM (#18854459)
Ugh, that violates strict aliasing, does it not?
Re:C++ Headers are Expensive by fpoling on Tuesday January 08, 2019 @05:29AM (#18854605)
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.