6 ms·
For layout-compatible types, you can often just include a `_base` member in each child. Maybe twice (once named and once unnamed) to avoid excess typing - I don
by o11c 1y ago
For layout-compatible types, you can often just include a `_base` member in each child. Maybe twice (once named and once unnamed) to avoid excess typing - I don't understand the common-initial-subsequence rule but people do this enough that compilers have to allow it.
- manwe150 1y agoI don't think compilers typically allow that: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14319 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14319