Re:Implementing Hash Tables in C
by jeffbee on Saturday October 16, 2021 @05:18PM
(#28891635)
Those people need to be copying, otherwise the reinterpretation might not be working. The char data might not be correctly aligned, for example. Recently went through a big nightmare where a C++ codebase that had accreted on x86 was thought to be ported to another platform where alignment actually matters and there were all manner of rare low-level malfunctions stemming from the idea that you can just wantonly cast a char* to structured data.
[ Parent
| on HN ]
There are no comments on this comment yet.