1 #include "ace/String_Base_Const.h"
2 #include "ace/Numeric_Limits.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 ACE_String_Base_Const::size_type
const ACE_String_Base_Const::npos
=
7 #if defined (AIX) //&& (defined (__xlC__) || defined (__IBMCPP__))
8 // Under some mixed shared/static linking conditions, this constant
9 // will not be initialized at run-time if the
10 // std::numeric_limits<>::max() trait is used on AIX/XLC++.
11 // Workaround that problem by making it easier for the compiler to
12 // realize it can set the constant at compile-time.
13 static_cast<ACE_String_Base_Const::size_type
> (-1);
15 ACE_Numeric_Limits
<ACE_String_Base_Const::size_type
>::max ();
18 ACE_END_VERSIONED_NAMESPACE_DECL