I misunderstood the definition for the overloading teplate, I have made the changes and I'm still getting the memory address.
I think it is because I am using a pointer:
Code:
ostream& operator << (ostream &out, const room * ¤tPlayerLocation)
{
out << currentPlayerLocation->roomDescription;
return out;
}
Leave a comment: