error: expected ‘;’ at end of member declaration
error: expected ‘)’ before ‘&’ Token
error reporting
When developing c + + in Linux environment, the following compilation errors or other inexplicable errors occur while ensuring that there are no errors in the code
error: expected ';' at end of member declaration
error: expected ‘)’ before ‘&’ toke
Solution:
check whether the header file contains circularly. For example, a.cpp contains B.H, b.cpp contains C.H, and c.cpp contains A.H to form a ring. In this case, an error will be reported.