]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/tcp_client.cxx
Don't use object returned from vector::end()
[simgear.git] / simgear / io / tcp_client.cxx
index d1d7f8c7f9edc6e878bdf16a270871469bb2c47d..4bd9b945a54696273eca0325014e35c5f27c8f03 100644 (file)
@@ -1,5 +1,5 @@
 #include <simgear/compiler.h>
-#include STL_IOSTREAM
+#include <iostream>
 
 #ifdef _WIN32
 #include <windows.h>
@@ -7,6 +7,8 @@
 #include <unistd.h>
 #endif
 
+#include <iostream>
+
 #include <simgear/debug/logstream.hxx>
 
 #include "sg_socket.hxx"
@@ -49,7 +51,7 @@ TcpClient::process()
 
     sprintf( wbuf, "hello world\n" );
     int length = channel->writestring( wbuf );
-    cout << "writestring returned " << length << "\n";
+    std::cout << "writestring returned " << length << "\n";
 
     return true;
 }
@@ -67,7 +69,7 @@ main()
     TcpClient client( "localhost", "5500" );
     if (!client.open())
     {
-       cout << "client open failed\n";
+        std::cout << "client open failed\n";
        return 0;
     }