Chris@16: // (C) Copyright John Maddock 2001. Chris@16: // (C) Copyright Jens Maurer 2001 - 2003. Chris@16: // (C) Copyright Peter Dimov 2002. Chris@16: // (C) Copyright Aleksey Gurtovoy 2002 - 2003. Chris@16: // (C) Copyright David Abrahams 2002. 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: // Sun C++ compiler setup: Chris@16: Chris@16: # if __SUNPRO_CC <= 0x500 Chris@16: # define BOOST_NO_MEMBER_TEMPLATES Chris@16: # define BOOST_NO_FUNCTION_TEMPLATE_ORDERING Chris@16: # endif Chris@16: Chris@16: # if (__SUNPRO_CC <= 0x520) Chris@16: // Chris@16: // Sunpro 5.2 and earler: Chris@16: // Chris@16: // although sunpro 5.2 supports the syntax for Chris@16: // inline initialization it often gets the value Chris@16: // wrong, especially where the value is computed Chris@16: // from other constants (J Maddock 6th May 2001) Chris@16: # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION Chris@16: Chris@16: // Although sunpro 5.2 supports the syntax for Chris@16: // partial specialization, it often seems to Chris@16: // bind to the wrong specialization. Better Chris@16: // to disable it until suppport becomes more stable Chris@16: // (J Maddock 6th May 2001). Chris@16: # define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION Chris@16: # endif Chris@16: Chris@16: # if (__SUNPRO_CC <= 0x530) Chris@16: // Requesting debug info (-g) with Boost.Python results Chris@16: // in an internal compiler error for "static const" Chris@16: // initialized in-class. Chris@16: // >> Assertion: (../links/dbg_cstabs.cc, line 611) Chris@16: // while processing ../test.cpp at line 0. Chris@16: // (Jens Maurer according to Gottfried Ganssauge 04 Mar 2002) Chris@16: # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION Chris@16: Chris@16: // SunPro 5.3 has better support for partial specialization, Chris@16: // but breaks when compiling std::less > Chris@16: // (Jens Maurer 4 Nov 2001). Chris@16: Chris@16: // std::less specialization fixed as reported by George Chris@16: // Heintzelman; partial specialization re-enabled Chris@16: // (Peter Dimov 17 Jan 2002) Chris@16: Chris@16: //# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION Chris@16: Chris@16: // integral constant expressions with 64 bit numbers fail Chris@16: # define BOOST_NO_INTEGRAL_INT64_T Chris@16: # endif Chris@16: Chris@16: # if (__SUNPRO_CC < 0x570) Chris@16: # define BOOST_NO_TEMPLATE_TEMPLATES Chris@16: // see http://lists.boost.org/MailArchives/boost/msg47184.php Chris@16: // and http://lists.boost.org/MailArchives/boost/msg47220.php Chris@16: # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION Chris@16: # define BOOST_NO_SFINAE Chris@16: # define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS Chris@16: # endif Chris@16: # if (__SUNPRO_CC <= 0x580) Chris@16: # define BOOST_NO_IS_ABSTRACT Chris@16: # endif Chris@16: Chris@16: # if (__SUNPRO_CC <= 0x5100) Chris@16: // Sun 5.10 may not correctly value-initialize objects of Chris@16: // some user defined types, as was reported in April 2010 Chris@16: // (CR 6947016), and confirmed by Steve Clamage. Chris@16: // (Niels Dekker, LKEB, May 2010). Chris@16: # define BOOST_NO_COMPLETE_VALUE_INITIALIZATION Chris@16: # endif Chris@16: Chris@16: // Chris@16: // Dynamic shared object (DSO) and dynamic-link library (DLL) support Chris@16: // Chris@16: #if __SUNPRO_CC > 0x500 Chris@16: # define BOOST_SYMBOL_EXPORT __global Chris@16: # define BOOST_SYMBOL_IMPORT __global Chris@16: # define BOOST_SYMBOL_VISIBLE __global Chris@16: #endif Chris@16: Chris@101: #if (__SUNPRO_CC < 0x5130) Chris@101: // C++03 features in 12.4: Chris@101: #define BOOST_NO_TWO_PHASE_NAME_LOOKUP Chris@101: #define BOOST_NO_SFINAE_EXPR Chris@101: #define BOOST_NO_ADL_BARRIER Chris@101: #define BOOST_NO_CXX11_VARIADIC_MACROS Chris@101: #endif Chris@16: Chris@101: #if (__SUNPRO_CC < 0x5130) || (__cplusplus < 201100) Chris@101: // C++11 only featuires in 12.4: Chris@16: #define BOOST_NO_CXX11_AUTO_DECLARATIONS Chris@16: #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS Chris@16: #define BOOST_NO_CXX11_CHAR16_T Chris@16: #define BOOST_NO_CXX11_CHAR32_T Chris@16: #define BOOST_NO_CXX11_CONSTEXPR Chris@16: #define BOOST_NO_CXX11_DECLTYPE Chris@16: #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS Chris@16: #define BOOST_NO_CXX11_DELETED_FUNCTIONS Chris@16: #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS Chris@16: #define BOOST_NO_CXX11_EXTERN_TEMPLATE Chris@16: #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS Chris@16: #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: #define BOOST_NO_CXX11_LAMBDAS Chris@16: #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS Chris@16: #define BOOST_NO_CXX11_NOEXCEPT Chris@16: #define BOOST_NO_CXX11_NULLPTR Chris@16: #define BOOST_NO_CXX11_RANGE_BASED_FOR Chris@16: #define BOOST_NO_CXX11_RAW_LITERALS Chris@16: #define BOOST_NO_CXX11_RVALUE_REFERENCES Chris@16: #define BOOST_NO_CXX11_SCOPED_ENUMS Chris@16: #define BOOST_NO_CXX11_STATIC_ASSERT Chris@16: #define BOOST_NO_CXX11_TEMPLATE_ALIASES Chris@16: #define BOOST_NO_CXX11_UNICODE_LITERALS Chris@16: #define BOOST_NO_CXX11_ALIGNAS Chris@16: #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES Chris@16: #define BOOST_NO_CXX11_INLINE_NAMESPACES Chris@101: #define BOOST_NO_CXX11_FINAL Chris@101: #endif Chris@16: Chris@16: // Chris@101: // Issues that effect all known versions: Chris@101: // Chris@101: // Variadic templates pass our test case, but enabling this Chris@101: // causes the compiler to issue a signal 11 and bail out Chris@101: // in various libraries. The others fail our test cases. Chris@101: // Chris@101: #define BOOST_NO_CXX11_VARIADIC_TEMPLATES Chris@101: #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX Chris@101: #define BOOST_NO_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS Chris@101: #define BOOST_NO_CXX11_DECLTYPE_N3276 Chris@101: #define BOOST_NO_CXX11_USER_DEFINED_LITERALS Chris@101: #define BOOST_NO_CXX11_REF_QUALIFIERS Chris@101: #define BOOST_NO_COMPLETE_VALUE_INITIALIZATION Chris@101: // Chris@101: // C++0x features Chris@101: // Chris@101: # define BOOST_HAS_LONG_LONG Chris@101: Chris@101: Chris@101: // C++ 14: Chris@101: #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304) Chris@101: # define BOOST_NO_CXX14_AGGREGATE_NSDMI Chris@101: #endif Chris@101: #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304) Chris@101: # define BOOST_NO_CXX14_BINARY_LITERALS Chris@101: #endif Chris@101: #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304) Chris@101: # define BOOST_NO_CXX14_CONSTEXPR Chris@101: #endif Chris@101: #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304) Chris@101: # define BOOST_NO_CXX14_DECLTYPE_AUTO Chris@101: #endif Chris@101: #if (__cplusplus < 201304) // There's no SD6 check for this.... Chris@101: # define BOOST_NO_CXX14_DIGIT_SEPARATORS Chris@101: #endif Chris@101: #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304) Chris@101: # define BOOST_NO_CXX14_GENERIC_LAMBDAS Chris@101: #endif Chris@101: #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304) Chris@101: # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES Chris@101: #endif Chris@101: #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304) Chris@101: # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION Chris@101: #endif Chris@101: #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304) Chris@101: # define BOOST_NO_CXX14_VARIABLE_TEMPLATES Chris@101: #endif Chris@101: // Chris@16: // Version Chris@16: // Chris@16: Chris@16: #define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC) Chris@16: Chris@16: // Chris@16: // versions check: Chris@16: // we don't support sunpro prior to version 4: Chris@16: #if __SUNPRO_CC < 0x400 Chris@16: #error "Compiler not supported or configured - please reconfigure" Chris@16: #endif Chris@16: // Chris@16: // last known and checked version is 0x590: Chris@16: #if (__SUNPRO_CC > 0x590) Chris@16: # if defined(BOOST_ASSERT_CONFIG) Chris@16: # error "Unknown compiler version - please run the configure tests and report the results" Chris@16: # endif Chris@16: #endif