From 3eae0bcb00e00f200ccf0f687c7c1417921af25e Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 30 Sep 2014 19:21:38 -0400 Subject: [PATCH] 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. --- examples/sockstreambuf_ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sockstreambuf_ex.cpp b/examples/sockstreambuf_ex.cpp index 2d790c5b1..c7a921e80 100644 --- a/examples/sockstreambuf_ex.cpp +++ b/examples/sockstreambuf_ex.cpp @@ -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";