123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601 |
- #ifndef BOOST_CONFIG_SUFFIX_HPP
- #define BOOST_CONFIG_SUFFIX_HPP
- #if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG) \
- && !defined(BOOST_MSVC) && !defined(__BORLANDC__)
- # include <limits.h>
- # if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
- # define BOOST_HAS_LONG_LONG
- # else
- # define BOOST_NO_LONG_LONG
- # endif
- #endif
- #if defined(__GNUC__) && (__GNUC__ >= 3) && defined(BOOST_NO_CTYPE_FUNCTIONS)
- # undef BOOST_NO_CTYPE_FUNCTIONS
- #endif
- # ifndef BOOST_STD_EXTENSION_NAMESPACE
- # define BOOST_STD_EXTENSION_NAMESPACE std
- # endif
- # if defined(BOOST_NO_CV_SPECIALIZATIONS) \
- && !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS)
- # define BOOST_NO_CV_VOID_SPECIALIZATIONS
- # endif
- # if defined(BOOST_NO_LIMITS) \
- && !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS)
- # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
- # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
- # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
- # endif
- #if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG_NUMERIC_LIMITS)
- # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
- #endif
- #if !defined(BOOST_HAS_MS_INT64) && !defined(BOOST_NO_MS_INT64_NUMERIC_LIMITS)
- # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
- #endif
- # if !defined(BOOST_NO_MEMBER_TEMPLATES) \
- && !defined(BOOST_MSVC6_MEMBER_TEMPLATES)
- # define BOOST_MSVC6_MEMBER_TEMPLATES
- # endif
- # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
- && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG)
- # define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG
- # endif
- # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
- && !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
- # define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
- # endif
- # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
- && !defined(BOOST_NO_STD_ITERATOR_TRAITS)
- # define BOOST_NO_STD_ITERATOR_TRAITS
- # endif
- # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
- && !defined(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS)
- # define BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
- # endif
- # if defined(BOOST_NO_MEMBER_TEMPLATES) \
- && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \
- && !defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
- # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
- # endif
- # if defined(BOOST_NO_MEMBER_TEMPLATES) \
- && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \
- && !defined(BOOST_NO_STD_ALLOCATOR)
- # define BOOST_NO_STD_ALLOCATOR
- # endif
- #if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
- # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
- #endif
- #if defined(BOOST_NO_TYPEID) && !defined(BOOST_NO_RTTI)
- # define BOOST_NO_RTTI
- #endif
- #if !defined(BOOST_NO_STD_ALLOCATOR)
- # define BOOST_HAS_PARTIAL_STD_ALLOCATOR
- #endif
- # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_USE_FACET)
- # define BOOST_NO_STD_USE_FACET
- # endif
- # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_MESSAGES)
- # define BOOST_NO_STD_MESSAGES
- # endif
- # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF)
- # define BOOST_NO_STD_WSTREAMBUF
- # endif
- # if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_CWCTYPE)
- # define BOOST_NO_CWCTYPE
- # endif
- # if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_SWPRINTF)
- # define BOOST_NO_SWPRINTF
- # endif
- #if defined(BOOST_DISABLE_WIN32) && defined(_WIN32) \
- && !defined(BOOST_DISABLE_THREADS) && !defined(BOOST_HAS_PTHREADS)
- # define BOOST_DISABLE_THREADS
- #endif
- #if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \
- || defined(_PTHREADS) || defined(__APPLE__) || defined(__DragonFly__)) \
- && !defined(BOOST_HAS_THREADS)
- # define BOOST_HAS_THREADS
- #endif
- #if defined(BOOST_DISABLE_THREADS) && defined(BOOST_HAS_THREADS)
- # undef BOOST_HAS_THREADS
- #endif
- #if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\
- && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)\
- && !defined(BOOST_HAS_MPTASKS)
- # undef BOOST_HAS_THREADS
- #endif
- #ifndef BOOST_HAS_THREADS
- # undef BOOST_HAS_PTHREADS
- # undef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
- # undef BOOST_HAS_PTHREAD_YIELD
- # undef BOOST_HAS_PTHREAD_DELAY_NP
- # undef BOOST_HAS_WINTHREADS
- # undef BOOST_HAS_BETHREADS
- # undef BOOST_HAS_MPTASKS
- #endif
- # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
- # define BOOST_HAS_STDINT_H
- # ifndef BOOST_HAS_LOG1P
- # define BOOST_HAS_LOG1P
- # endif
- # ifndef BOOST_HAS_EXPM1
- # define BOOST_HAS_EXPM1
- # endif
- # endif
- # if !defined(BOOST_HAS_SLIST) && !defined(BOOST_NO_SLIST)
- # define BOOST_NO_SLIST
- # endif
- # if !defined(BOOST_HAS_HASH) && !defined(BOOST_NO_HASH)
- # define BOOST_NO_HASH
- # endif
- #if defined(BOOST_HAS_SLIST) && !defined(BOOST_SLIST_HEADER)
- # define BOOST_SLIST_HEADER <slist>
- #endif
- #if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_SET_HEADER)
- # define BOOST_HASH_SET_HEADER <hash_set>
- #endif
- #if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_MAP_HEADER)
- # define BOOST_HASH_MAP_HEADER <hash_map>
- #endif
- #if defined(BOOST_NO_0X_HDR_INITIALIZER_LIST) && !defined(BOOST_NO_INITIALIZER_LISTS)
- # define BOOST_NO_INITIALIZER_LISTS
- #endif
- #if defined(BOOST_ABI_PREFIX) && defined(BOOST_ABI_SUFFIX) && !defined(BOOST_HAS_ABI_HEADERS)
- # define BOOST_HAS_ABI_HEADERS
- #endif
- #if defined(BOOST_HAS_ABI_HEADERS) && defined(BOOST_DISABLE_ABI_HEADERS)
- # undef BOOST_HAS_ABI_HEADERS
- #endif
- # ifdef BOOST_NO_STDC_NAMESPACE
- # include <cstddef>
- namespace std { using ::ptrdiff_t; using ::size_t; }
- # endif
- #define BOOST_PREVENT_MACRO_SUBSTITUTION
- #ifndef BOOST_USING_STD_MIN
- # define BOOST_USING_STD_MIN() using std::min
- #endif
- #ifndef BOOST_USING_STD_MAX
- # define BOOST_USING_STD_MAX() using std::max
- #endif
- # ifdef BOOST_NO_STD_MIN_MAX
- namespace std {
- template <class _Tp>
- inline const _Tp& min BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) {
- return __b < __a ? __b : __a;
- }
- template <class _Tp>
- inline const _Tp& max BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) {
- return __a < __b ? __b : __a;
- }
- }
- # endif
- # ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
- # define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment }
- # else
- # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
- # endif
- #if defined(BOOST_NO_STD_USE_FACET)
- # ifdef BOOST_HAS_TWO_ARG_USE_FACET
- # define BOOST_USE_FACET(Type, loc) std::use_facet(loc, static_cast<Type*>(0))
- # define BOOST_HAS_FACET(Type, loc) std::has_facet(loc, static_cast<Type*>(0))
- # elif defined(BOOST_HAS_MACRO_USE_FACET)
- # define BOOST_USE_FACET(Type, loc) std::_USE(loc, Type)
- # define BOOST_HAS_FACET(Type, loc) std::_HAS(loc, Type)
- # elif defined(BOOST_HAS_STLP_USE_FACET)
- # define BOOST_USE_FACET(Type, loc) (*std::_Use_facet<Type >(loc))
- # define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc)
- # endif
- #else
- # define BOOST_USE_FACET(Type, loc) std::use_facet< Type >(loc)
- # define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc)
- #endif
- #ifndef BOOST_NO_MEMBER_TEMPLATE_KEYWORD
- # define BOOST_NESTED_TEMPLATE template
- #else
- # define BOOST_NESTED_TEMPLATE
- #endif
- #ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION
- # define BOOST_UNREACHABLE_RETURN(x) return x;
- #else
- # define BOOST_UNREACHABLE_RETURN(x)
- #endif
- #ifndef BOOST_NO_DEDUCED_TYPENAME
- # define BOOST_DEDUCED_TYPENAME typename
- #else
- # define BOOST_DEDUCED_TYPENAME
- #endif
- #ifndef BOOST_NO_TYPENAME_WITH_CTOR
- # define BOOST_CTOR_TYPENAME typename
- #else
- # define BOOST_CTOR_TYPENAME
- #endif
- #if defined(BOOST_HAS_LONG_LONG)
- namespace boost{
- # ifdef __GNUC__
- __extension__ typedef long long long_long_type;
- __extension__ typedef unsigned long long ulong_long_type;
- # else
- typedef long long long_long_type;
- typedef unsigned long long ulong_long_type;
- # endif
- }
- #endif
- #if defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
- # include "boost/type.hpp"
- # include "boost/non_type.hpp"
- # define BOOST_EXPLICIT_TEMPLATE_TYPE(t) boost::type<t>* = 0
- # define BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t) boost::type<t>*
- # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v) boost::non_type<t, v>* = 0
- # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) boost::non_type<t, v>*
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(t) \
- , BOOST_EXPLICIT_TEMPLATE_TYPE(t)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t) \
- , BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v) \
- , BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) \
- , BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)
- #else
- # define BOOST_EXPLICIT_TEMPLATE_TYPE(t)
- # define BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t)
- # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v)
- # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(t)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v)
- # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)
- #endif
- #define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X)
- #define BOOST_DO_STRINGIZE(X) #X
- #define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y )
- #define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y)
- #define BOOST_DO_JOIN2( X, Y ) X##Y
- # ifndef BOOST_COMPILER
- # define BOOST_COMPILER "Unknown ISO C++ Compiler"
- # endif
- # ifndef BOOST_STDLIB
- # define BOOST_STDLIB "Unknown ISO standard library"
- # endif
- # ifndef BOOST_PLATFORM
- # if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) \
- || defined(_POSIX_SOURCE)
- # define BOOST_PLATFORM "Generic Unix"
- # else
- # define BOOST_PLATFORM "Unknown"
- # endif
- # endif
- #endif
|