Код: Выделить всё
#include
#include
#pragma pack(push)
#pragma pack(1)
struct A {
long l;
int n;
char c;
};
#pragma pack(pop)
int main() {
A arr[] = {{42, 42, 42}, {42, 42, 42}};
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79388139/why-does-stdformat-require-its-arguments-are-aligned[/url]
Мобильная версия