Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Jens Maurer 2001. Chris@16: // (C) Copyright David Abrahams 2003. Chris@16: // (C) Copyright Boris Gubenko 2007. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // Rogue Wave std lib: Chris@16: Chris@16: #define BOOST_RW_STDLIB 1 Chris@16: Chris@16: #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) Chris@16: # include Chris@16: # if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) Chris@16: # error This is not the Rogue Wave standard library Chris@16: # endif Chris@16: #endif Chris@16: // Chris@16: // figure out a consistent version number: Chris@16: // Chris@16: #ifndef _RWSTD_VER Chris@16: # define BOOST_RWSTD_VER 0x010000 Chris@16: #elif _RWSTD_VER < 0x010000 Chris@16: # define BOOST_RWSTD_VER (_RWSTD_VER << 8) Chris@16: #else Chris@16: # define BOOST_RWSTD_VER _RWSTD_VER Chris@16: #endif Chris@16: Chris@16: #ifndef _RWSTD_VER Chris@16: # define BOOST_STDLIB "Rogue Wave standard library version (Unknown version)" Chris@16: #elif _RWSTD_VER < 0x04010200 Chris@16: # define BOOST_STDLIB "Rogue Wave standard library version " BOOST_STRINGIZE(_RWSTD_VER) Chris@16: #else Chris@16: # ifdef _RWSTD_VER_STR Chris@16: # define BOOST_STDLIB "Apache STDCXX standard library version " _RWSTD_VER_STR Chris@16: # else Chris@16: # define BOOST_STDLIB "Apache STDCXX standard library version " BOOST_STRINGIZE(_RWSTD_VER) Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Prior to version 2.2.0 the primary template for std::numeric_limits Chris@16: // does not have compile time constants, even though specializations of that Chris@16: // template do: Chris@16: // Chris@16: #if BOOST_RWSTD_VER < 0x020200 Chris@16: # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS Chris@16: #endif Chris@16: Chris@16: // Sun CC 5.5 patch 113817-07 adds long long specialization, but does not change the Chris@16: // library version number (http://sunsolve6.sun.com/search/document.do?assetkey=1-21-113817): Chris@16: #if BOOST_RWSTD_VER <= 0x020101 && (!defined(__SUNPRO_CC) || (__SUNPRO_CC < 0x550)) Chris@16: # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS Chris@16: # endif Chris@16: Chris@16: // Chris@16: // Borland version of numeric_limits lacks __int64 specialisation: Chris@16: // Chris@16: #ifdef __BORLANDC__ Chris@16: # define BOOST_NO_MS_INT64_NUMERIC_LIMITS Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No std::iterator if it can't figure out default template args: Chris@16: // Chris@16: #if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000) Chris@16: # define BOOST_NO_STD_ITERATOR Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No iterator traits without partial specialization: Chris@16: // Chris@16: #if defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) || defined(RWSTD_NO_CLASS_PARTIAL_SPEC) Chris@16: # define BOOST_NO_STD_ITERATOR_TRAITS Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Prior to version 2.0, std::auto_ptr was buggy, and there were no Chris@16: // new-style iostreams, and no conformant std::allocator: Chris@16: // Chris@16: #if (BOOST_RWSTD_VER < 0x020000) Chris@16: # define BOOST_NO_AUTO_PTR Chris@16: # define BOOST_NO_STRINGSTREAM Chris@16: # define BOOST_NO_STD_ALLOCATOR Chris@16: # define BOOST_NO_STD_LOCALE Chris@16: #endif Chris@16: Chris@16: // Chris@16: // No template iterator constructors without member template support: Chris@16: // Chris@16: #if defined(RWSTD_NO_MEMBER_TEMPLATES) || defined(_RWSTD_NO_MEMBER_TEMPLATES) Chris@16: # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS Chris@16: #endif Chris@16: Chris@16: // Chris@16: // RW defines _RWSTD_ALLOCATOR if the allocator is conformant and in use Chris@16: // (the or _HPACC_ part is a hack - the library seems to define _RWSTD_ALLOCATOR Chris@16: // on HP aCC systems even though the allocator is in fact broken): Chris@16: // Chris@16: #if !defined(_RWSTD_ALLOCATOR) || (defined(__HP_aCC) && __HP_aCC <= 33100) Chris@16: # define BOOST_NO_STD_ALLOCATOR Chris@16: #endif Chris@16: Chris@16: // Chris@16: // If we have a std::locale, we still may not have std::use_facet: Chris@16: // Chris@16: #if defined(_RWSTD_NO_TEMPLATE_ON_RETURN_TYPE) && !defined(BOOST_NO_STD_LOCALE) Chris@16: # define BOOST_NO_STD_USE_FACET Chris@16: # define BOOST_HAS_TWO_ARG_USE_FACET Chris@16: #endif Chris@16: Chris@16: // Chris@16: // There's no std::distance prior to version 2, or without Chris@16: // partial specialization support: Chris@16: // Chris@16: #if (BOOST_RWSTD_VER < 0x020000) || defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) Chris@16: #define BOOST_NO_STD_DISTANCE Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Some versions of the rogue wave library don't have assignable Chris@16: // OutputIterators: Chris@16: // Chris@16: #if BOOST_RWSTD_VER < 0x020100 Chris@16: # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Disable BOOST_HAS_LONG_LONG when the library has no support for it. Chris@16: // Chris@16: #if !defined(_RWSTD_LONG_LONG) && defined(BOOST_HAS_LONG_LONG) Chris@16: # undef BOOST_HAS_LONG_LONG Chris@16: #endif Chris@16: Chris@16: // Chris@16: // check that on HP-UX, the proper RW library is used Chris@16: // Chris@16: #if defined(__HP_aCC) && !defined(_HP_NAMESPACE_STD) Chris@16: # error "Boost requires Standard RW library. Please compile and link with -AA" Chris@16: #endif Chris@16: Chris@16: // Chris@16: // Define macros specific to RW V2.2 on HP-UX Chris@16: // Chris@16: #if defined(__HP_aCC) && (BOOST_RWSTD_VER == 0x02020100) Chris@16: # ifndef __HP_TC1_MAKE_PAIR Chris@16: # define __HP_TC1_MAKE_PAIR Chris@16: # endif Chris@16: # ifndef _HP_INSTANTIATE_STD2_VL Chris@16: # define _HP_INSTANTIATE_STD2_VL Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: #if _RWSTD_VER < 0x05000000 Chris@16: # define BOOST_NO_CXX11_HDR_ARRAY Chris@16: #endif Chris@16: // type_traits header is incomplete: Chris@16: # define BOOST_NO_CXX11_HDR_TYPE_TRAITS Chris@16: // Chris@16: // C++0x headers not yet implemented Chris@16: // Chris@16: # define BOOST_NO_CXX11_HDR_CHRONO Chris@16: # define BOOST_NO_CXX11_HDR_CODECVT Chris@16: # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE Chris@16: # define BOOST_NO_CXX11_HDR_FORWARD_LIST Chris@16: # define BOOST_NO_CXX11_HDR_FUTURE Chris@16: # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: # define BOOST_NO_CXX11_HDR_MUTEX Chris@16: # define BOOST_NO_CXX11_HDR_RANDOM Chris@16: # define BOOST_NO_CXX11_HDR_RATIO Chris@16: # define BOOST_NO_CXX11_HDR_REGEX Chris@16: # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR Chris@16: # define BOOST_NO_CXX11_HDR_THREAD Chris@16: # define BOOST_NO_CXX11_HDR_TUPLE Chris@16: # define BOOST_NO_CXX11_HDR_TYPEINDEX Chris@16: # define BOOST_NO_CXX11_HDR_UNORDERED_MAP Chris@16: # define BOOST_NO_CXX11_HDR_UNORDERED_SET Chris@16: # define BOOST_NO_CXX11_NUMERIC_LIMITS Chris@16: # define BOOST_NO_CXX11_ALLOCATOR Chris@16: # define BOOST_NO_CXX11_ATOMIC_SMART_PTR Chris@16: # define BOOST_NO_CXX11_SMART_PTR Chris@16: # define BOOST_NO_CXX11_HDR_FUNCTIONAL Chris@101: # define BOOST_NO_CXX11_HDR_ATOMIC Chris@101: # define BOOST_NO_CXX11_STD_ALIGN Chris@101: # define BOOST_NO_CXX11_ADDRESSOF Chris@16: