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 Ganßauge 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 #      define BOOST_NO_IS_ABSTRACT
00068 #    endif
00069 
00070 #define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC)
00071 
00072 //
00073 // versions check:
00074 // we don't support sunpro prior to version 4:
00075 #if __SUNPRO_CC < 0x400
00076 #error "Compiler not supported or configured - please reconfigure"
00077 #endif
00078 //
00079 // last known and checked version is 0x570:
00080 #if (__SUNPRO_CC > 0x570)
00081 #  if defined(BOOST_ASSERT_CONFIG)
00082 #     error "Unknown compiler version - please run the configure tests and report the results"
00083 #  endif
00084 #endif
00085 
00086 
00087 
00088 
00089 
00090 

Generated on Wed Jan 21 15:32:09 2009 for SystemC by  doxygen 1.5.5