prog.cpp:2:29: error: expected class-name before '{' token
class Derived : public base { /* ... */ };
^
prog.cpp: In function 'int main()':
prog.cpp:15:5: error: no match for 'operator=' (operand types are 'Base' and 'Derived')
b = d // ok
^
prog.cpp:15:5: note: candidate is:
prog.cpp:1:7: note: Base& Base::operator=(const Base&)
class Base { /* ... */ };
^
prog.cpp:1:7: note: no known conversion for argument 1 from 'Derived' to 'const Base&'
Standard output is empty
Advanced CPP: Template techniques Mixins vs. Liskov substitutional principle