Remix.run Logo
jandrewrogers 5 days ago

> You can do it in C++, but sizeof(EmptyStruct) is 1.

Unless you use the C++20 [[no_unique_address]] attribute, in which case it is 0 (if used correctly).

butterisgood 4 days ago | parent [-]

I completely forgot about that!