I have a confusion. I am making a set class and when I overload the << or >> operators with this prototype:
ostream& operator<<(const ostream & out, Set & argSet)
{
//whatever my code does
return out;
}
It does not work. But if I remove the "const" keyword in first argument, it works. I am confused why it is not working. Any help will be appreciated.