|
|
|
|
|
|
binary 'operator' : no operator found which takes a right-hand operand of type 'type' (or there is no acceptable conversion) |
os << d.month()
and Date::month() does return type Month
. What should that print?os << static_cast<int>( d.month() )
ostream& operator<< (ostream&, const Month&);
friend ostream& operator<< (ostream& os, const Date& d);
into my class but it is still alerting me about this error..ostream& operator<< (ostream&, const Month&);
.