aboutsummaryrefslogtreecommitdiff
path: root/externals/ace/String_Base_Const.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-06-07 19:10:55 +0200
committerRat <none@none>2010-06-07 19:10:55 +0200
commit32546e22828e793e3881e1055acb72b6a044e331 (patch)
tree759706cdfe8423887c69a2f8ed651c0c1e5ab7d7 /externals/ace/String_Base_Const.cpp
parent2e0f8fb6e558088b33bdee83bc5ff20014e983b3 (diff)
added ace + vcproj for win
--HG-- branch : trunk
Diffstat (limited to 'externals/ace/String_Base_Const.cpp')
-rw-r--r--externals/ace/String_Base_Const.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/externals/ace/String_Base_Const.cpp b/externals/ace/String_Base_Const.cpp
new file mode 100644
index 00000000000..e3f0f18f429
--- /dev/null
+++ b/externals/ace/String_Base_Const.cpp
@@ -0,0 +1,20 @@
+// $Id: String_Base_Const.cpp 80826 2008-03-04 14:51:23Z wotte $
+
+#include "ace/String_Base_Const.h"
+#include "ace/Numeric_Limits.h"
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_String_Base_Const::size_type const ACE_String_Base_Const::npos =
+#if defined (AIX) //&& (defined (__xlC__) || defined (__IBMCPP__))
+ // Under some mixed shared/static linking conditions, this constant
+ // will not be initialized at run-time if the
+ // std::numeric_limits<>::max() trait is used on AIX/XLC++.
+ // Workaround that problem by making it easier for the compiler to
+ // realize it can set the constant at compile-time.
+ static_cast<ACE_String_Base_Const::size_type> (-1);
+#else
+ ACE_Numeric_Limits<ACE_String_Base_Const::size_type>::max ();
+#endif /* AIX */
+
+ACE_END_VERSIONED_NAMESPACE_DECL