More Issues with <<overload!
I have another problem...
I have an overloaded << operator that won't work with external ofstream csis(csis is just a text file)...the errror I"m getting is:
c:\documents and settings\hp_administrator\my documents\visual studio 2005\projects\stringstuff\case.cpp(62) : error C2678: binary '<<' : no operator found which takes a left-hand operand of type 'std::ofstream' (or there is no acceptable conversion)
my simple little function looks like this:
where the declaration is:
ostream& operator<<(ostream& os, String& str)
os << str.getBuf() << endl;
friend ostream& operator<<(ostream&, const String& str);
Anyone?? Anyone??? I have not the slightest clue.... I hope that's enough information too::