prog.cpp: In function 'int main()':
prog.cpp:28:5: error: use of deleted function 'Derived& Derived::operator=(const Derived&)'
d1 = d0;
^
prog.cpp:18:8: note: 'Derived& Derived::operator=(const Derived&)' is implicitly deleted because the default definition would be ill-formed:
struct Derived : Base
^
prog.cpp:13:11: error: 'Base& Base::operator=(const Base&)' is private
Base& operator=(const Base&);
^
prog.cpp:18:8: error: within this context
struct Derived : Base
^