sunpro_cc.hpp
Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001. 
00002 //  (C) Copyright Jens Maurer 2001 - 2003. 
00003 //  (C) Copyright Peter Dimov 2002. 
00004 //  (C) Copyright Aleksey Gurtovoy 2002 - 2003. 
00005 //  (C) Copyright David Abrahams 2002. 
00006 //  Use, modification and distribution are subject to the 
00007 //  Boost Software License, Version 1.0. (See accompanying file 
00008 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00009 
00010 //  See http://www.boost.org for most recent version.
00011 
00012 //  Sun C++ compiler setup:
00013 
00014 #    if __SUNPRO_CC <= 0x500
00015 #      define BOOST_NO_MEMBER_TEMPLATES
00016 #      define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
00017 #    endif
00018 
00019 #    if (__SUNPRO_CC <= 0x520)
00020        //
00021        // Sunpro 5.2 and earler:
00022        //
00023        // although sunpro 5.2 supports the syntax for
00024        // inline initialization it often gets the value
00025        // wrong, especially where the value is computed
00026        // from other constants (J Maddock 6th May 2001)
00027 #      define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
00028 
00029        // Although sunpro 5.2 supports the syntax for
00030        // partial specialization, it often seems to
00031        // bind to the wrong specialization.  Better
00032        // to disable it until suppport becomes more stable
00033        // (J Maddock 6th May 2001).
00034 #      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
00035 #    endif
00036 
00037 #    if (__SUNPRO_CC <= 0x530) 
00038        // Requesting debug info (-g) with Boost.Python results
00039        // in an internal compiler error for "static const"
00040        // initialized in-class.
00041        //    >> Assertion:   (../links/dbg_cstabs.cc, line 611)
00042        //         while processing ../test.cpp at line 0.
00043        // (Jens Maurer according to Gottfried Ganssauge 04 Mar 2002)
00044 #      define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
00045 
00046        // SunPro 5.3 has better support for partial specialization,
00047        // but breaks when compiling std::less<shared_ptr<T> >
00048        // (Jens Maurer 4 Nov 2001).
00049 
00050        // std::less specialization fixed as reported by George
00051        // Heintzelman; partial specialization re-enabled
00052        // (Peter Dimov 17 Jan 2002)
00053 
00054 //#      define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
00055 
00056        // integral constant expressions with 64 bit numbers fail
00057 #      define BOOST_NO_INTEGRAL_INT64_T
00058 #    endif
00059 
00060 #    if (__SUNPRO_CC < 0x570) 
00061 #      define BOOST_NO_TEMPLATE_TEMPLATES
00062        // see http://lists.boost.org/MailArchives/boost/msg47184.php
00063        // and http://lists.boost.org/MailArchives/boost/msg47220.php
00064 #      define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
00065 #      define BOOST_NO_SFINAE
00066 #      define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
00067 #    endif
00068 #    if (__SUNPRO_CC <= 0x580) 
00069 #      define BOOST_NO_IS_ABSTRACT
00070 #    endif
00071 
00072 //
00073 // Issues that effect all known versions:
00074 //
00075 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00076 #define BOOST_NO_ADL_BARRIER
00077 #define BOOST_NO_INITIALIZER_LISTS
00078 
00079 //
00080 // C++0x features
00081 //
00082 
00083 #if(__SUNPRO_CC >= 0x590) 
00084 #  define BOOST_HAS_LONG_LONG
00085 #else
00086 #  define BOOST_NO_LONG_LONG
00087 #endif
00088 
00089 #define BOOST_NO_CHAR16_T
00090 #define BOOST_NO_CHAR32_T
00091 #define BOOST_NO_CONSTEXPR
00092 #define BOOST_NO_DECLTYPE
00093 #define BOOST_NO_DEFAULTED_FUNCTIONS
00094 #define BOOST_NO_DELETED_FUNCTIONS
00095 #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
00096 #define BOOST_NO_EXTERN_TEMPLATE
00097 #define BOOST_NO_RAW_LITERALS
00098 #define BOOST_NO_RVALUE_REFERENCES
00099 #define BOOST_NO_SCOPED_ENUMS
00100 #define BOOST_NO_STATIC_ASSERT
00101 #define BOOST_NO_UNICODE_LITERALS
00102 #define BOOST_NO_VARIADIC_TEMPLATES
00103 #define BOOST_NO_AUTO_DECLARATIONS
00104 #define BOOST_NO_AUTO_MULTIDECLARATIONS
00105 
00106 //
00107 // Version
00108 //
00109 
00110 #define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC)
00111 
00112 //
00113 // versions check:
00114 // we don't support sunpro prior to version 4:
00115 #if __SUNPRO_CC < 0x400
00116 #error "Compiler not supported or configured - please reconfigure"
00117 #endif
00118 //
00119 // last known and checked version is 0x590:
00120 #if (__SUNPRO_CC > 0x590)
00121 #  if defined(BOOST_ASSERT_CONFIG)
00122 #     error "Unknown compiler version - please run the configure tests and report the results"
00123 #  endif
00124 #endif


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29