Hacker News new | ask | show | jobs
by kevin_thibedeau 2250 days ago
This will an alignment problem on any platform with data types larger than size_t. You'd need an alignas(max_align_t) on the struct. At which point some people are going to be unhappy about the wasteful padding on a memory constrained target.