GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / String_Base_Const.cpp
blob12169d66a39dcb987889462b6cd5b3ccc7d96fba
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);
14 #else
15 ACE_Numeric_Limits<ACE_String_Base_Const::size_type>::max ();
16 #endif /* AIX */
18 ACE_END_VERSIONED_NAMESPACE_DECL