Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / String_Base_Const.cpp
blobe3f0f18f429473c554f4095c45f63237827dc75b
1 // $Id: String_Base_Const.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #include "ace/String_Base_Const.h"
4 #include "ace/Numeric_Limits.h"
6 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
8 ACE_String_Base_Const::size_type const ACE_String_Base_Const::npos =
9 #if defined (AIX) //&& (defined (__xlC__) || defined (__IBMCPP__))
10 // Under some mixed shared/static linking conditions, this constant
11 // will not be initialized at run-time if the
12 // std::numeric_limits<>::max() trait is used on AIX/XLC++.
13 // Workaround that problem by making it easier for the compiler to
14 // realize it can set the constant at compile-time.
15 static_cast<ACE_String_Base_Const::size_type> (-1);
16 #else
17 ACE_Numeric_Limits<ACE_String_Base_Const::size_type>::max ();
18 #endif /* AIX */
20 ACE_END_VERSIONED_NAMESPACE_DECL