prog.cpp: In function 'int main()':
prog.cpp:32:4: error: no match for 'operator=' (operand types are 'Foo' and 'void')
a = b = c;
^
prog.cpp:15:7: note: candidate: void Foo::operator=(const Foo&)
void operator=(const Foo& other)
^
prog.cpp:15:7: note: no known conversion for argument 1 from 'void' to 'const Foo&'