Error: Binding reference of type .. to const
I’m trying to overload operator<<. When trying I got an error saying Error: Passing const as this argument discards qualifiers So I added const to my functions but now I’m getting this error: Binding reference of type .. to const. Main.cpp ostream& operator<<(ostream& ostr, const Student& stud){ float mo = 0; int quantity = stud.get_grade().size();\… Read More Error: Binding reference of type .. to const