SS
Size: a a a
SS
SS
SS
CD
SS
CD
АР
SS
SS
AT
CD
CD
AT
AT
CD
AT
CD
struct A { int x; };иначе restrict нужен
struct B { int x; };
int foo(A* a) {
return reinterpret_cast<B*>(a)->x;
}
int main() {
A a{0};
return foo(&a);
}
S
an aggregate or union type that includes one of the aforementionedЭто правило позволяло?
types among its elements or non-static data members (including,
recursively, an element or non-static data member of a subaggregate or contained union)
PY
struct { double a; double b; }
a и b не будут pointer interconvertibleНЛ