axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp AxisBenchClient.cpp
Date Wed, 17 Nov 2004 11:15:55 GMT
dicka       2004/11/17 03:15:55

  Modified:    c/tests/auto_build/testcases/client/cpp AxisBenchClient.cpp
  Log:
  Overload << operator to support cout of __int64 on Windows,
  
  PR: AXISCPP-268
  Submitted by: Andrew Perry
  Reviewed by: Adrian Dick
  
  Revision  Changes    Path
  1.6       +11 -0     ws-axis/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp
  
  Index: AxisBenchClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AxisBenchClient.cpp	12 Nov 2004 10:39:10 -0000	1.5
  +++ AxisBenchClient.cpp	17 Nov 2004 11:15:55 -0000	1.6
  @@ -7,6 +7,17 @@
     #include "sys/time.h"
   #else
     #include "sys/timeb.h"
  +
  +  // Bug in MS Visual C++ 6.0. Fixed in Visual C++ .Net version.
  +  // Cannot print an __int64 number with cout without this overloading
  +  std::ostream& operator<<(std::ostream& os, __int64 i )
  +  {
  +    char buf[20];
  +    sprintf(buf,"%I64d", i );
  +    os << buf;
  +    return os;
  +  }
  +
   #endif
   
   static bool verbose = false;
  
  
  

Mime
View raw message