Код: Выделить всё
#include
#include
#include
// Has padding bits
struct Padded {
char b : 3{0};
char c{0};
};
int main() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79230612/what-allows-trivially-copyable-types-to-have-padding-bits[/url]
Мобильная версия