I have a class where I have overloaded the << operator to append incoming strings to a member string. When I'm done appending though I would like to be able to pass the endl character in with the same << operator and have it be recognized and perform a special function.
Is there a way to do this? I tried overloading << to accept a char, but that didn't work either.
it is the same problem. As the first answer there says,