Why is #include preventing a stack overflow error here?

Indeed, very interesting behavior. Any idea why I get I runtime error when commenting out #include <string> With MS VC++ compiler the error happens because if you do not #include <string> you won’t have operator<< defined for std::string. When the compiler tries to compile ausgabe << f.getName(); it looks for an operator<< defined for std::string. … Read more