Commit 3eae0bcb authored by Davis King's avatar Davis King

Changed example to avoid tying a stream to itself since some iostream libraries

have a bug that causes them to crash when you do this.
parent f4f39597
......@@ -41,7 +41,7 @@ int main()
iostream stream(&buf);
// This command causes the iostream to flush its output buffers
// whenever someone makes a read request.
stream.tie(&stream);
buf.flush_output_on_read();
// Now we make the HTTP GET request for the main Google page.
stream << "GET / HTTP/1.0\r\n\r\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment