struct A { ...... }; struct B: public A { }; A a1; B b1; // надо сделать b1::A = a1 // я делаю так *static_cast<A*>(&b1) = a1;