So I'm trying to overload the extraction operator, but I keep getting an ambiguous overload error. Here's the extraction that I'm using:
bool cc = false;
cout << CC;
And here's the overload function.
ostream& operator<< (ostream &out, bool &C1){
if(C1) out << "A";
if(!C1) out << "D";
return out;
}
Any ideas why I'm getting the error?