3 ms·
No, you can just jam the integer into the "data" field in the structure and skip that allocation. As I said, and others have commented, it requires some compli
by unwind 6y ago
No, you can just jam the integer into the "data" field in the structure and skip that allocation.
As I said, and others have commented, it requires some complicated castery to avoid UB, but it's totally doable (and at least GCC does the right thing, while warning, with no advanced casts).
Thanks for an interesting article!