Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++empty base optimizationSingle-choice MCQ

Why does EBO fail to save space in the following layout, leaving `sizeof(D)` larger than `sizeof(int)`?

struct Empty {}; struct D : Empty { Empty first_member; int x; };