]> 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 a02e25d3b2bca5636ad73123bb99a6055abd9106..4bd9b945a54696273eca0325014e35c5f27c8f03 100644 (file)
@@ -1,5 +1,5 @@
 #include <simgear/compiler.h>
-#include STL_IOSTREAM
+#include <iostream>
 
 #ifdef _WIN32
 #include <windows.h>
@@ -7,13 +7,12 @@
 #include <unistd.h>
 #endif
 
+#include <iostream>
+
 #include <simgear/debug/logstream.hxx>
 
 #include "sg_socket.hxx"
 
-#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
-using std::cout;
-#endif
 
 class TcpClient
 {
@@ -52,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;
 }
@@ -70,7 +69,7 @@ main()
     TcpClient client( "localhost", "5500" );
     if (!client.open())
     {
-       cout << "client open failed\n";
+        std::cout << "client open failed\n";
        return 0;
     }