sl@0: // Boost config.hpp configuration header file ------------------------------// sl@0: sl@0: // (C) Copyright John Maddock 2001 - 2003. sl@0: // (C) Copyright Darin Adler 2001. sl@0: // (C) Copyright Peter Dimov 2001. sl@0: // (C) Copyright Bill Kempf 2002. sl@0: // (C) Copyright Jens Maurer 2002. sl@0: // (C) Copyright David Abrahams 2002 - 2003. sl@0: // (C) Copyright Gennaro Prota 2003. sl@0: // (C) Copyright Eric Friedman 2003. sl@0: // Use, modification and distribution are subject to the sl@0: // Boost Software License, Version 1.0. (See accompanying file sl@0: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) sl@0: sl@0: // See http://www.boost.org for most recent version. sl@0: sl@0: // Boost config.hpp policy and rationale documentation has been moved to sl@0: // http://www.boost.org/libs/config sl@0: // sl@0: // This file is intended to be stable, and relatively unchanging. sl@0: // It should contain boilerplate code only - no compiler specific sl@0: // code unless it is unavoidable - no changes unless unavoidable. sl@0: sl@0: #ifndef BOOST_CONFIG_SUFFIX_HPP sl@0: #define BOOST_CONFIG_SUFFIX_HPP sl@0: sl@0: // sl@0: // look for long long by looking for the appropriate macros in . sl@0: // Note that we use limits.h rather than climits for maximal portability, sl@0: // remember that since these just declare a bunch of macros, there should be sl@0: // no namespace issues from this. sl@0: // sl@0: #if !defined(BOOST_HAS_LONG_LONG) \ sl@0: && !defined(BOOST_MSVC) && !defined(__BORLANDC__) sl@0: # include sl@0: # if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX)) sl@0: # define BOOST_HAS_LONG_LONG sl@0: # endif sl@0: #endif sl@0: sl@0: // GCC 3.x will clean up all of those nasty macro definitions that sl@0: // BOOST_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine sl@0: // it under GCC 3.x. sl@0: #if defined(__GNUC__) && (__GNUC__ >= 3) && defined(BOOST_NO_CTYPE_FUNCTIONS) sl@0: # undef BOOST_NO_CTYPE_FUNCTIONS sl@0: #endif sl@0: sl@0: sl@0: // sl@0: // Assume any extensions are in namespace std:: unless stated otherwise: sl@0: // sl@0: # ifndef BOOST_STD_EXTENSION_NAMESPACE sl@0: # define BOOST_STD_EXTENSION_NAMESPACE std sl@0: # endif sl@0: sl@0: // sl@0: // If cv-qualified specializations are not allowed, then neither are cv-void ones: sl@0: // sl@0: # if defined(BOOST_NO_CV_SPECIALIZATIONS) \ sl@0: && !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS) sl@0: # define BOOST_NO_CV_VOID_SPECIALIZATIONS sl@0: # endif sl@0: sl@0: // sl@0: // If there is no numeric_limits template, then it can't have any compile time sl@0: // constants either! sl@0: // sl@0: # if defined(BOOST_NO_LIMITS) \ sl@0: && !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) sl@0: # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS sl@0: # define BOOST_NO_MS_INT64_NUMERIC_LIMITS sl@0: # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS sl@0: # endif sl@0: sl@0: // sl@0: // if there is no long long then there is no specialisation sl@0: // for numeric_limits either: sl@0: // sl@0: #if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG_NUMERIC_LIMITS) sl@0: # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS sl@0: #endif sl@0: sl@0: // sl@0: // if there is no __int64 then there is no specialisation sl@0: // for numeric_limits<__int64> either: sl@0: // sl@0: #if !defined(BOOST_HAS_MS_INT64) && !defined(BOOST_NO_MS_INT64_NUMERIC_LIMITS) sl@0: # define BOOST_NO_MS_INT64_NUMERIC_LIMITS sl@0: #endif sl@0: sl@0: // sl@0: // if member templates are supported then so is the sl@0: // VC6 subset of member templates: sl@0: // sl@0: # if !defined(BOOST_NO_MEMBER_TEMPLATES) \ sl@0: && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) sl@0: # define BOOST_MSVC6_MEMBER_TEMPLATES sl@0: # endif sl@0: sl@0: // sl@0: // Without partial specialization, can't test for partial specialisation bugs: sl@0: // sl@0: # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ sl@0: && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) sl@0: # define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG sl@0: # endif sl@0: sl@0: // sl@0: // Without partial specialization, we can't have array-type partial specialisations: sl@0: // sl@0: # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ sl@0: && !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS) sl@0: # define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS sl@0: # endif sl@0: sl@0: // sl@0: // Without partial specialization, std::iterator_traits can't work: sl@0: // sl@0: # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ sl@0: && !defined(BOOST_NO_STD_ITERATOR_TRAITS) sl@0: # define BOOST_NO_STD_ITERATOR_TRAITS sl@0: # endif sl@0: sl@0: // sl@0: // Without member template support, we can't have template constructors sl@0: // in the standard library either: sl@0: // sl@0: # if defined(BOOST_NO_MEMBER_TEMPLATES) \ sl@0: && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \ sl@0: && !defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS) sl@0: # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS sl@0: # endif sl@0: sl@0: // sl@0: // Without member template support, we can't have a conforming sl@0: // std::allocator template either: sl@0: // sl@0: # if defined(BOOST_NO_MEMBER_TEMPLATES) \ sl@0: && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \ sl@0: && !defined(BOOST_NO_STD_ALLOCATOR) sl@0: # define BOOST_NO_STD_ALLOCATOR sl@0: # endif sl@0: sl@0: // sl@0: // without ADL support then using declarations will break ADL as well: sl@0: // sl@0: #if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) sl@0: # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL sl@0: #endif sl@0: sl@0: // sl@0: // If we have a standard allocator, then we have a partial one as well: sl@0: // sl@0: #if !defined(BOOST_NO_STD_ALLOCATOR) sl@0: # define BOOST_HAS_PARTIAL_STD_ALLOCATOR sl@0: #endif sl@0: sl@0: // sl@0: // We can't have a working std::use_facet if there is no std::locale: sl@0: // sl@0: # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_USE_FACET) sl@0: # define BOOST_NO_STD_USE_FACET sl@0: # endif sl@0: sl@0: // sl@0: // We can't have a std::messages facet if there is no std::locale: sl@0: // sl@0: # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_MESSAGES) sl@0: # define BOOST_NO_STD_MESSAGES sl@0: # endif sl@0: sl@0: // sl@0: // We can't have a working std::wstreambuf if there is no std::locale: sl@0: // sl@0: # if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF) sl@0: # define BOOST_NO_STD_WSTREAMBUF sl@0: # endif sl@0: sl@0: // sl@0: // We can't have a if there is no : sl@0: // sl@0: # if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_CWCTYPE) sl@0: # define BOOST_NO_CWCTYPE sl@0: # endif sl@0: sl@0: // sl@0: // We can't have a swprintf if there is no : sl@0: // sl@0: # if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_SWPRINTF) sl@0: # define BOOST_NO_SWPRINTF sl@0: # endif sl@0: sl@0: // sl@0: // If Win32 support is turned off, then we must turn off sl@0: // threading support also, unless there is some other sl@0: // thread API enabled: sl@0: // sl@0: #if defined(BOOST_DISABLE_WIN32) && defined(_WIN32) \ sl@0: && !defined(BOOST_DISABLE_THREADS) && !defined(BOOST_HAS_PTHREADS) sl@0: # define BOOST_DISABLE_THREADS sl@0: #endif sl@0: sl@0: // sl@0: // Turn on threading support if the compiler thinks that it's in sl@0: // multithreaded mode. We put this here because there are only a sl@0: // limited number of macros that identify this (if there's any missing sl@0: // from here then add to the appropriate compiler section): sl@0: // sl@0: #if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \ sl@0: || defined(_PTHREADS)) && !defined(BOOST_HAS_THREADS) sl@0: # define BOOST_HAS_THREADS sl@0: #endif sl@0: sl@0: // sl@0: // Turn threading support off if BOOST_DISABLE_THREADS is defined: sl@0: // sl@0: #if defined(BOOST_DISABLE_THREADS) && defined(BOOST_HAS_THREADS) sl@0: # undef BOOST_HAS_THREADS sl@0: #endif sl@0: sl@0: // sl@0: // Turn threading support off if we don't recognise the threading API: sl@0: // sl@0: #if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\ sl@0: && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)\ sl@0: && !defined(BOOST_HAS_MPTASKS) sl@0: # undef BOOST_HAS_THREADS sl@0: #endif sl@0: sl@0: // sl@0: // Turn threading detail macros off if we don't (want to) use threading sl@0: // sl@0: #ifndef BOOST_HAS_THREADS sl@0: # undef BOOST_HAS_PTHREADS sl@0: # undef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE sl@0: # undef BOOST_HAS_WINTHREADS sl@0: # undef BOOST_HAS_BETHREADS sl@0: # undef BOOST_HAS_MPTASKS sl@0: #endif sl@0: sl@0: // sl@0: // If the compiler claims to be C99 conformant, then it had better sl@0: // have a : sl@0: // sl@0: # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901) sl@0: # define BOOST_HAS_STDINT_H sl@0: # ifndef BOOST_HAS_LOG1P sl@0: # define BOOST_HAS_LOG1P sl@0: # endif sl@0: # ifndef BOOST_HAS_EXPM1 sl@0: # define BOOST_HAS_EXPM1 sl@0: # endif sl@0: # endif sl@0: sl@0: // sl@0: // Define BOOST_NO_SLIST and BOOST_NO_HASH if required. sl@0: // Note that this is for backwards compatibility only. sl@0: // sl@0: # ifndef BOOST_HAS_SLIST sl@0: # define BOOST_NO_SLIST sl@0: # endif sl@0: sl@0: # ifndef BOOST_HAS_HASH sl@0: # define BOOST_NO_HASH sl@0: # endif sl@0: sl@0: // sl@0: // Set BOOST_SLIST_HEADER if not set already: sl@0: // sl@0: #if defined(BOOST_HAS_SLIST) && !defined(BOOST_SLIST_HEADER) sl@0: # define BOOST_SLIST_HEADER sl@0: #endif sl@0: sl@0: // sl@0: // Set BOOST_HASH_SET_HEADER if not set already: sl@0: // sl@0: #if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_SET_HEADER) sl@0: # define BOOST_HASH_SET_HEADER sl@0: #endif sl@0: sl@0: // sl@0: // Set BOOST_HASH_MAP_HEADER if not set already: sl@0: // sl@0: #if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_MAP_HEADER) sl@0: # define BOOST_HASH_MAP_HEADER sl@0: #endif sl@0: sl@0: // BOOST_HAS_ABI_HEADERS sl@0: // This macro gets set if we have headers that fix the ABI, sl@0: // and prevent ODR violations when linking to external libraries: sl@0: #if defined(BOOST_ABI_PREFIX) && defined(BOOST_ABI_SUFFIX) && !defined(BOOST_HAS_ABI_HEADERS) sl@0: # define BOOST_HAS_ABI_HEADERS sl@0: #endif sl@0: sl@0: #if defined(BOOST_HAS_ABI_HEADERS) && defined(BOOST_DISABLE_ABI_HEADERS) sl@0: # undef BOOST_HAS_ABI_HEADERS sl@0: #endif sl@0: sl@0: // BOOST_NO_STDC_NAMESPACE workaround --------------------------------------// sl@0: // Because std::size_t usage is so common, even in boost headers which do not sl@0: // otherwise use the C library, the workaround is included here so sl@0: // that ugly workaround code need not appear in many other boost headers. sl@0: // NOTE WELL: This is a workaround for non-conforming compilers; sl@0: // must still be #included in the usual places so that inclusion sl@0: // works as expected with standard conforming compilers. The resulting sl@0: // double inclusion of is harmless. sl@0: sl@0: # ifdef BOOST_NO_STDC_NAMESPACE sl@0: # include sl@0: namespace std { using ::ptrdiff_t; using ::size_t; } sl@0: # endif sl@0: sl@0: // Workaround for the unfortunate min/max macros defined by some platform headers sl@0: sl@0: #define BOOST_PREVENT_MACRO_SUBSTITUTION sl@0: sl@0: #ifndef BOOST_USING_STD_MIN sl@0: # define BOOST_USING_STD_MIN() using std::min sl@0: #endif sl@0: sl@0: #ifndef BOOST_USING_STD_MAX sl@0: # define BOOST_USING_STD_MAX() using std::max sl@0: #endif sl@0: sl@0: // BOOST_NO_STD_MIN_MAX workaround -----------------------------------------// sl@0: sl@0: # ifdef BOOST_NO_STD_MIN_MAX sl@0: sl@0: namespace std { sl@0: template sl@0: inline const _Tp& min BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) { sl@0: return __b < __a ? __b : __a; sl@0: } sl@0: template sl@0: inline const _Tp& max BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) { sl@0: return __a < __b ? __b : __a; sl@0: } sl@0: } sl@0: sl@0: # endif sl@0: sl@0: // BOOST_STATIC_CONSTANT workaround --------------------------------------- // sl@0: // On compilers which don't allow in-class initialization of static integral sl@0: // constant members, we must use enums as a workaround if we want the constants sl@0: // to be available at compile-time. This macro gives us a convenient way to sl@0: // declare such constants. sl@0: sl@0: # ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION sl@0: # define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment } sl@0: # else sl@0: # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment sl@0: # endif sl@0: sl@0: // BOOST_USE_FACET / HAS_FACET workaround ----------------------------------// sl@0: // When the standard library does not have a conforming std::use_facet there sl@0: // are various workarounds available, but they differ from library to library. sl@0: // The same problem occurs with has_facet. sl@0: // These macros provide a consistent way to access a locale's facets. sl@0: // Usage: sl@0: // replace sl@0: // std::use_facet(loc); sl@0: // with sl@0: // BOOST_USE_FACET(Type, loc); sl@0: // Note do not add a std:: prefix to the front of BOOST_USE_FACET! sl@0: // Use for BOOST_HAS_FACET is analagous. sl@0: sl@0: #if defined(BOOST_NO_STD_USE_FACET) sl@0: # ifdef BOOST_HAS_TWO_ARG_USE_FACET sl@0: # define BOOST_USE_FACET(Type, loc) std::use_facet(loc, static_cast(0)) sl@0: # define BOOST_HAS_FACET(Type, loc) std::has_facet(loc, static_cast(0)) sl@0: # elif defined(BOOST_HAS_MACRO_USE_FACET) sl@0: # define BOOST_USE_FACET(Type, loc) std::_USE(loc, Type) sl@0: # define BOOST_HAS_FACET(Type, loc) std::_HAS(loc, Type) sl@0: # elif defined(BOOST_HAS_STLP_USE_FACET) sl@0: # define BOOST_USE_FACET(Type, loc) (*std::_Use_facet(loc)) sl@0: # define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc) sl@0: # endif sl@0: #else sl@0: # define BOOST_USE_FACET(Type, loc) std::use_facet< Type >(loc) sl@0: # define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc) sl@0: #endif sl@0: sl@0: // BOOST_NESTED_TEMPLATE workaround ------------------------------------------// sl@0: // Member templates are supported by some compilers even though they can't use sl@0: // the A::template member syntax, as a workaround replace: sl@0: // sl@0: // typedef typename A::template rebind binder; sl@0: // sl@0: // with: sl@0: // sl@0: // typedef typename A::BOOST_NESTED_TEMPLATE rebind binder; sl@0: sl@0: #ifndef BOOST_NO_MEMBER_TEMPLATE_KEYWORD sl@0: # define BOOST_NESTED_TEMPLATE template sl@0: #else sl@0: # define BOOST_NESTED_TEMPLATE sl@0: #endif sl@0: sl@0: // BOOST_UNREACHABLE_RETURN(x) workaround -------------------------------------// sl@0: // Normally evaluates to nothing, unless BOOST_NO_UNREACHABLE_RETURN_DETECTION sl@0: // is defined, in which case it evaluates to return x; Use when you have a return sl@0: // statement that can never be reached. sl@0: sl@0: #ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION sl@0: # define BOOST_UNREACHABLE_RETURN(x) return x; sl@0: #else sl@0: # define BOOST_UNREACHABLE_RETURN(x) sl@0: #endif sl@0: sl@0: // BOOST_DEDUCED_TYPENAME workaround ------------------------------------------// sl@0: // sl@0: // Some compilers don't support the use of `typename' for dependent sl@0: // types in deduced contexts, e.g. sl@0: // sl@0: // template void f(T, typename T::type); sl@0: // ^^^^^^^^ sl@0: // Replace these declarations with: sl@0: // sl@0: // template void f(T, BOOST_DEDUCED_TYPENAME T::type); sl@0: sl@0: #ifndef BOOST_NO_DEDUCED_TYPENAME sl@0: # define BOOST_DEDUCED_TYPENAME typename sl@0: #else sl@0: # define BOOST_DEDUCED_TYPENAME sl@0: #endif sl@0: sl@0: // long long workaround ------------------------------------------// sl@0: // On gcc (and maybe other compilers?) long long is alway supported sl@0: // but it's use may generate either warnings (with -ansi), or errors sl@0: // (with -pedantic -ansi) unless it's use is prefixed by __extension__ sl@0: // sl@0: #if defined(BOOST_HAS_LONG_LONG) sl@0: namespace boost{ sl@0: # ifdef __GNUC__ sl@0: __extension__ typedef long long long_long_type; sl@0: __extension__ typedef unsigned long long ulong_long_type; sl@0: # else sl@0: typedef long long long_long_type; sl@0: typedef unsigned long long ulong_long_type; sl@0: # endif sl@0: } sl@0: #endif sl@0: sl@0: // BOOST_[APPEND_]EXPLICIT_TEMPLATE_[NON_]TYPE macros --------------------------// sl@0: // sl@0: // Some compilers have problems with function templates whose sl@0: // template parameters don't appear in the function parameter sl@0: // list (basically they just link one instantiation of the sl@0: // template in the final executable). These macros provide a sl@0: // uniform way to cope with the problem with no effects on the sl@0: // calling syntax. sl@0: sl@0: // Example: sl@0: // sl@0: // #include sl@0: // #include sl@0: // #include sl@0: // sl@0: // template sl@0: // void f() { std::cout << n << ' '; } sl@0: // sl@0: // template sl@0: // void g() { std::cout << typeid(T).name() << ' '; } sl@0: // sl@0: // int main() { sl@0: // f<1>(); sl@0: // f<2>(); sl@0: // sl@0: // g(); sl@0: // g(); sl@0: // } sl@0: // sl@0: // With VC++ 6.0 the output is: sl@0: // sl@0: // 2 2 double double sl@0: // sl@0: // To fix it, write sl@0: // sl@0: // template sl@0: // void f(BOOST_EXPLICIT_TEMPLATE_NON_TYPE(int, n)) { ... } sl@0: // sl@0: // template sl@0: // void g(BOOST_EXPLICIT_TEMPLATE_TYPE(T)) { ... } sl@0: // sl@0: sl@0: sl@0: #if defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS sl@0: sl@0: # include "boost/type.hpp" sl@0: # include "boost/non_type.hpp" sl@0: sl@0: # define BOOST_EXPLICIT_TEMPLATE_TYPE(t) boost::type* = 0 sl@0: # define BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t) boost::type* sl@0: # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v) boost::non_type* = 0 sl@0: # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) boost::non_type* sl@0: sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(t) \ sl@0: , BOOST_EXPLICIT_TEMPLATE_TYPE(t) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t) \ sl@0: , BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v) \ sl@0: , BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) \ sl@0: , BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) sl@0: sl@0: #else sl@0: sl@0: // no workaround needed: expand to nothing sl@0: sl@0: # define BOOST_EXPLICIT_TEMPLATE_TYPE(t) sl@0: # define BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t) sl@0: # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v) sl@0: # define BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) sl@0: sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(t) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v) sl@0: # define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) sl@0: sl@0: sl@0: #endif // defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS sl@0: sl@0: sl@0: // ---------------------------------------------------------------------------// sl@0: sl@0: // sl@0: // Helper macro BOOST_STRINGIZE: sl@0: // Converts the parameter X to a string after macro replacement sl@0: // on X has been performed. sl@0: // sl@0: #define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X) sl@0: #define BOOST_DO_STRINGIZE(X) #X sl@0: sl@0: // sl@0: // Helper macro BOOST_JOIN: sl@0: // The following piece of macro magic joins the two sl@0: // arguments together, even when one of the arguments is sl@0: // itself a macro (see 16.3.1 in C++ standard). The key sl@0: // is that macro expansion of macro arguments does not sl@0: // occur in BOOST_DO_JOIN2 but does in BOOST_DO_JOIN. sl@0: // sl@0: #define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y ) sl@0: #define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y) sl@0: #define BOOST_DO_JOIN2( X, Y ) X##Y sl@0: sl@0: // sl@0: // Set some default values for compiler/library/platform names. sl@0: // These are for debugging config setup only: sl@0: // sl@0: # ifndef BOOST_COMPILER sl@0: # define BOOST_COMPILER "Unknown ISO C++ Compiler" sl@0: # endif sl@0: # ifndef BOOST_STDLIB sl@0: # define BOOST_STDLIB "Unknown ISO standard library" sl@0: # endif sl@0: # ifndef BOOST_PLATFORM sl@0: # if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) \ sl@0: || defined(_POSIX_SOURCE) sl@0: # define BOOST_PLATFORM "Generic Unix" sl@0: # else sl@0: # define BOOST_PLATFORM "Unknown" sl@0: # endif sl@0: # endif sl@0: sl@0: #endif sl@0: sl@0: sl@0: sl@0: