epoc32/include/stdapis/boost/config/stdlib/stlport.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/config/stdlib/stlport.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,201 @@
     1.4 +//  (C) Copyright John Maddock 2001 - 2002. 
     1.5 +//  (C) Copyright Darin Adler 2001. 
     1.6 +//  (C) Copyright Jens Maurer 2001. 
     1.7 +//  Use, modification and distribution are subject to the 
     1.8 +//  Boost Software License, Version 1.0. (See accompanying file 
     1.9 +//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    1.10 +
    1.11 +//  See http://www.boost.org for most recent version.
    1.12 +
    1.13 +//  STLPort standard library config:
    1.14 +
    1.15 +#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
    1.16 +#  include <boost/config/no_tr1/utility.hpp>
    1.17 +#  if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
    1.18 +#      error "This is not STLPort!"
    1.19 +#  endif
    1.20 +#endif
    1.21 +
    1.22 +//
    1.23 +// __STL_STATIC_CONST_INIT_BUG implies BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
    1.24 +// for versions prior to 4.1(beta)
    1.25 +//
    1.26 +#if (defined(__STL_STATIC_CONST_INIT_BUG) || defined(_STLP_STATIC_CONST_INIT_BUG)) && (__SGI_STL_PORT <= 0x400)
    1.27 +#  define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
    1.28 +#endif
    1.29 +
    1.30 +//
    1.31 +// If STLport thinks that there is no partial specialisation, then there is no
    1.32 +// std::iterator traits:
    1.33 +//
    1.34 +#if !(defined(_STLP_CLASS_PARTIAL_SPECIALIZATION) || defined(__STL_CLASS_PARTIAL_SPECIALIZATION))
    1.35 +#  define BOOST_NO_STD_ITERATOR_TRAITS
    1.36 +#endif
    1.37 +
    1.38 +//
    1.39 +// No new style iostreams on GCC without STLport's iostreams enabled:
    1.40 +//
    1.41 +#if (defined(__GNUC__) && (__GNUC__ < 3)) && !(defined(__SGI_STL_OWN_IOSTREAMS) || defined(_STLP_OWN_IOSTREAMS))
    1.42 +#  define BOOST_NO_STRINGSTREAM
    1.43 +#endif
    1.44 +
    1.45 +//
    1.46 +// No new iostreams implies no std::locale, and no std::stringstream:
    1.47 +//
    1.48 +#if defined(__STL_NO_IOSTREAMS) || defined(__STL_NO_NEW_IOSTREAMS) || defined(_STLP_NO_IOSTREAMS) || defined(_STLP_NO_NEW_IOSTREAMS)
    1.49 +#  define BOOST_NO_STD_LOCALE
    1.50 +#  define BOOST_NO_STRINGSTREAM
    1.51 +#endif
    1.52 +
    1.53 +//
    1.54 +// If the streams are not native, and we have a "using ::x" compiler bug
    1.55 +// then the io stream facets are not available in namespace std::
    1.56 +//
    1.57 +#ifdef _STLPORT_VERSION
    1.58 +#  if !(_STLPORT_VERSION >= 0x500) && !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
    1.59 +#     define BOOST_NO_STD_LOCALE
    1.60 +#  endif
    1.61 +#else
    1.62 +#  if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
    1.63 +#     define BOOST_NO_STD_LOCALE
    1.64 +#  endif
    1.65 +#endif
    1.66 +
    1.67 +//
    1.68 +// Without member template support enabled, their are no template
    1.69 +// iterate constructors, and no std::allocator:
    1.70 +//
    1.71 +#if !(defined(__STL_MEMBER_TEMPLATES) || defined(_STLP_MEMBER_TEMPLATES))
    1.72 +#  define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
    1.73 +#  define BOOST_NO_STD_ALLOCATOR
    1.74 +#endif
    1.75 +//
    1.76 +// however we always have at least a partial allocator:
    1.77 +//
    1.78 +#define BOOST_HAS_PARTIAL_STD_ALLOCATOR
    1.79 +
    1.80 +#if !defined(_STLP_MEMBER_TEMPLATE_CLASSES) || defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE)
    1.81 +#  define BOOST_NO_STD_ALLOCATOR
    1.82 +#endif
    1.83 +
    1.84 +#if defined(_STLP_NO_MEMBER_TEMPLATE_KEYWORD) && defined(BOOST_MSVC) && (BOOST_MSVC <= 1300)
    1.85 +#  define BOOST_NO_STD_ALLOCATOR
    1.86 +#endif
    1.87 +
    1.88 +//
    1.89 +// If STLport thinks there is no wchar_t at all, then we have to disable
    1.90 +// the support for the relevant specilazations of std:: templates.
    1.91 +//
    1.92 +#if !defined(_STLP_HAS_WCHAR_T) && !defined(_STLP_WCHAR_T_IS_USHORT)
    1.93 +#  ifndef  BOOST_NO_STD_WSTRING
    1.94 +#     define BOOST_NO_STD_WSTRING
    1.95 +#  endif
    1.96 +#  ifndef  BOOST_NO_STD_WSTREAMBUF
    1.97 +#     define BOOST_NO_STD_WSTREAMBUF
    1.98 +#  endif
    1.99 +#endif
   1.100 +
   1.101 +//
   1.102 +// We always have SGI style hash_set, hash_map, and slist:
   1.103 +//
   1.104 +#define BOOST_HAS_HASH
   1.105 +#define BOOST_HAS_SLIST
   1.106 +
   1.107 +//
   1.108 +// STLport does a good job of importing names into namespace std::,
   1.109 +// but doesn't always get them all, define BOOST_NO_STDC_NAMESPACE, since our
   1.110 +// workaround does not conflict with STLports:
   1.111 +//
   1.112 +//
   1.113 +// Harold Howe says:
   1.114 +// Borland switched to STLport in BCB6. Defining BOOST_NO_STDC_NAMESPACE with
   1.115 +// BCB6 does cause problems. If we detect C++ Builder, then don't define 
   1.116 +// BOOST_NO_STDC_NAMESPACE
   1.117 +//
   1.118 +#if !defined(__BORLANDC__) && !defined(__DMC__)
   1.119 +//
   1.120 +// If STLport is using it's own namespace, and the real names are in
   1.121 +// the global namespace, then we duplicate STLport's using declarations
   1.122 +// (by defining BOOST_NO_STDC_NAMESPACE), we do this because STLport doesn't
   1.123 +// necessarily import all the names we need into namespace std::
   1.124 +// 
   1.125 +#  if (defined(__STL_IMPORT_VENDOR_CSTD) \
   1.126 +         || defined(__STL_USE_OWN_NAMESPACE) \
   1.127 +         || defined(_STLP_IMPORT_VENDOR_CSTD) \
   1.128 +         || defined(_STLP_USE_OWN_NAMESPACE)) \
   1.129 +      && (defined(__STL_VENDOR_GLOBAL_CSTD) || defined (_STLP_VENDOR_GLOBAL_CSTD))
   1.130 +#     define BOOST_NO_STDC_NAMESPACE
   1.131 +#     define BOOST_NO_EXCEPTION_STD_NAMESPACE
   1.132 +#  endif
   1.133 +#elif defined(__BORLANDC__) && __BORLANDC__ < 0x560
   1.134 +// STLport doesn't import std::abs correctly:
   1.135 +#include <stdlib.h>
   1.136 +namespace std { using ::abs; }
   1.137 +// and strcmp/strcpy don't get imported either ('cos they are macros)
   1.138 +#include <string.h>
   1.139 +#ifdef strcpy
   1.140 +#  undef strcpy
   1.141 +#endif
   1.142 +#ifdef strcmp
   1.143 +#  undef strcmp
   1.144 +#endif
   1.145 +#ifdef _STLP_VENDOR_CSTD
   1.146 +namespace std{ using _STLP_VENDOR_CSTD::strcmp; using _STLP_VENDOR_CSTD::strcpy; }
   1.147 +#endif
   1.148 +#endif
   1.149 +
   1.150 +//
   1.151 +// std::use_facet may be non-standard, uses a class instead:
   1.152 +//
   1.153 +#if defined(__STL_NO_EXPLICIT_FUNCTION_TMPL_ARGS) || defined(_STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS)
   1.154 +#  define BOOST_NO_STD_USE_FACET
   1.155 +#  define BOOST_HAS_STLP_USE_FACET
   1.156 +#endif
   1.157 +
   1.158 +//
   1.159 +// If STLport thinks there are no wide functions, <cwchar> etc. is not working; but
   1.160 +// only if BOOST_NO_STDC_NAMESPACE is not defined (if it is then we do the import 
   1.161 +// into std:: ourselves).
   1.162 +//
   1.163 +#if defined(_STLP_NO_NATIVE_WIDE_FUNCTIONS) && !defined(BOOST_NO_STDC_NAMESPACE)
   1.164 +#  define BOOST_NO_CWCHAR
   1.165 +#  define BOOST_NO_CWCTYPE
   1.166 +#endif
   1.167 +
   1.168 +//
   1.169 +// If STLport for some reason was configured so that it thinks that wchar_t
   1.170 +// is not an intrinsic type, then we have to disable the support for it as
   1.171 +// well (we would be missing required specializations otherwise).
   1.172 +//
   1.173 +#if !defined( _STLP_HAS_WCHAR_T) || defined(_STLP_WCHAR_T_IS_USHORT)
   1.174 +#  undef  BOOST_NO_INTRINSIC_WCHAR_T
   1.175 +#  define BOOST_NO_INTRINSIC_WCHAR_T
   1.176 +#endif
   1.177 +
   1.178 +//
   1.179 +// Borland ships a version of STLport with C++ Builder 6 that lacks
   1.180 +// hashtables and the like:
   1.181 +//
   1.182 +#if defined(__BORLANDC__) && (__BORLANDC__ == 0x560)
   1.183 +#  undef BOOST_HAS_HASH
   1.184 +#endif
   1.185 +
   1.186 +//
   1.187 +// gcc-2.95.3/STLPort does not like the using declarations we use to get ADL with std::min/max
   1.188 +//
   1.189 +#if defined(__GNUC__) && (__GNUC__ < 3)
   1.190 +#  include <algorithm> // for std::min and std::max
   1.191 +#  define BOOST_USING_STD_MIN() ((void)0)
   1.192 +#  define BOOST_USING_STD_MAX() ((void)0)
   1.193 +namespace boost { using std::min; using std::max; }
   1.194 +#endif
   1.195 +
   1.196 +#define BOOST_STDLIB "STLPort standard library version " BOOST_STRINGIZE(__SGI_STL_PORT)
   1.197 +
   1.198 +
   1.199 +
   1.200 +
   1.201 +
   1.202 +
   1.203 +
   1.204 +