"Content-length: "
That is a string and this:
BUFFER.length()
equates to an int. So when you use the + operator between the two are you trying to concatenate an int onto the string or are you trying to add an int to a string or are what are you trying to do? You could output both like this:
cout << "Content-length: ";
cout << BUFFER.length();
but everything between the << and ; operators in this line:
cout << "Content-length: " + BUFFER.length();
is considered one object so it has to be compatible one way or the other.
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Offline 2,253 posts
since Jul 2005