You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/07/06 17:04:34 UTC
cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp XSDAttributeClient.cpp
dicka 2005/07/06 08:04:34
Modified: c/tests/auto_build/testcases/client/cpp
XSDAttributeClient.cpp
Log:
Minor change to test case following recent changes to unsignedLong to use 64bit integers.
PR: AXISCPP-653
Submitted by: Adrian Dick
Revision Changes Path
1.5 +19 -0 ws-axis/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp
Index: XSDAttributeClient.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XSDAttributeClient.cpp 23 Mar 2005 15:45:06 -0000 1.4
+++ XSDAttributeClient.cpp 6 Jul 2005 15:04:34 -0000 1.5
@@ -19,6 +19,25 @@
#include <ctype.h>
#include <iostream>
+#ifdef WIN32
+ // 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;
+ }
+
+ std::ostream& operator<<(std::ostream& os, unsigned __int64 i )
+ {
+ char buf[20];
+ sprintf(buf,"%I64u", i );
+ os << buf;
+ return os;
+ }
+#endif
int main(int argc, char* argv[])
{