Is this correct then?
Originally posted by velius
You return a reference to the stream object to be used in calling the stream again in a row. Just like with cout.
dStream dStream::operator <<(char *param)
SendMessage(hEdit, EM_REPLACESEL, (WPARAM) false, (LPARAM) param);
When I do that I get an error.
endl just outputs the '\n' character, then flushes the output buffer.
ds << "byebye" << std::endl;
I understand that I may need to overload again, but in what way?
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type '' (or there is no acceptable conversion)