error: no match for ‘operator<<’ (operand types are ‘std::basic_
(认知有限,如有不妥,还请告知,欢迎讨论)
完整报错:error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
解决方法:
加上#include <iostream>
=END=
=reference=
[1]https://stackoverflow.com/questions/42175638/error-while-operator-overloading-error-no-match-for-operator-operand-type