gcc.hpp
Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001 - 2003. 
00002 //  (C) Copyright Darin Adler 2001 - 2002. 
00003 //  (C) Copyright Jens Maurer 2001 - 2002. 
00004 //  (C) Copyright Beman Dawes 2001 - 2003. 
00005 //  (C) Copyright Douglas Gregor 2002. 
00006 //  (C) Copyright David Abrahams 2002 - 2003. 
00007 //  (C) Copyright Synge Todo 2003. 
00008 //  Use, modification and distribution are subject to the 
00009 //  Boost Software License, Version 1.0. (See accompanying file 
00010 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00011 
00012 //  See http://www.boost.org for most recent version.
00013 
00014 //  GNU C++ compiler setup:
00015 
00016 #if __GNUC__ < 3
00017 #   if __GNUC_MINOR__ == 91
00018        // egcs 1.1 won't parse shared_ptr.hpp without this:
00019 #      define BOOST_NO_AUTO_PTR
00020 #   endif
00021 #   if __GNUC_MINOR__ < 95
00022       //
00023       // Prior to gcc 2.95 member templates only partly
00024       // work - define BOOST_MSVC6_MEMBER_TEMPLATES
00025       // instead since inline member templates mostly work.
00026       //
00027 #     define BOOST_NO_MEMBER_TEMPLATES
00028 #     if __GNUC_MINOR__ >= 9
00029 #       define BOOST_MSVC6_MEMBER_TEMPLATES
00030 #     endif
00031 #   endif
00032 
00033 #   if __GNUC_MINOR__ < 96
00034 #     define BOOST_NO_SFINAE
00035 #   endif
00036 
00037 #   if __GNUC_MINOR__ <= 97
00038 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
00039 #     define BOOST_NO_OPERATORS_IN_NAMESPACE
00040 #   endif
00041 
00042 #   define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
00043 #   define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
00044 #   define BOOST_NO_IS_ABSTRACT
00045 #elif __GNUC__ == 3
00046 #  if defined (__PATHSCALE__)
00047 #     define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00048 #     define BOOST_NO_IS_ABSTRACT
00049 #  endif
00050    //
00051    // gcc-3.x problems:
00052    //
00053    // Bug specific to gcc 3.1 and 3.2:
00054    //
00055 #  if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
00056 #     define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
00057 #  endif
00058 #  if __GNUC_MINOR__ < 4
00059 #     define BOOST_NO_IS_ABSTRACT
00060 #  endif
00061 #endif
00062 #if __GNUC__ < 4
00063 //
00064 // All problems to gcc-3.x and earlier here:
00065 //
00066 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00067 #endif
00068 
00069 #ifndef __EXCEPTIONS
00070 # define BOOST_NO_EXCEPTIONS
00071 #endif
00072 
00073 
00074 //
00075 // Threading support: Turn this on unconditionally here (except for
00076 // those platforms where we can know for sure). It will get turned off again
00077 // later if no threading API is detected.
00078 //
00079 #if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
00080 # define BOOST_HAS_THREADS
00081 #endif 
00082 
00083 //
00084 // gcc has "long long"
00085 //
00086 #define BOOST_HAS_LONG_LONG
00087 
00088 //
00089 // gcc implements the named return value optimization since version 3.1
00090 //
00091 #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
00092 #define BOOST_HAS_NRVO
00093 #endif
00094 //
00095 // RTTI and typeinfo detection is possible post gcc-4.3:
00096 //
00097 #if __GNUC__ * 100 + __GNUC_MINOR__ >= 403
00098 #  ifndef __GXX_RTTI
00099 #     define BOOST_NO_TYPEID
00100 #     define BOOST_NO_RTTI
00101 #  endif
00102 #endif
00103 
00104 //
00105 // C++0x features
00106 //
00107 
00108 #define BOOST_NO_CHAR16_T
00109 #define BOOST_NO_CHAR32_T
00110 #define BOOST_NO_CONSTEXPR
00111 #define BOOST_NO_DEFAULTED_FUNCTIONS
00112 #define BOOST_NO_DELETED_FUNCTIONS
00113 #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
00114 #define BOOST_NO_EXTERN_TEMPLATE
00115 #define BOOST_NO_RAW_LITERALS
00116 #define BOOST_NO_SCOPED_ENUMS
00117 #define BOOST_NO_UNICODE_LITERALS
00118 // See below for BOOST_NO_AUTO_DECLARATIONS
00119 #define BOOST_NO_AUTO_MULTIDECLARATIONS
00120 
00121 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) && defined(__GXX_EXPERIMENTAL_CXX0X__)
00122 // C++0x features are only enabled when -std=c++0x or -std=gnu++0x are
00123 // passed on the command line, which in turn defines
00124 // __GXX_EXPERIMENTAL_CXX0X__.
00125 #  define BOOST_HAS_DECLTYPE
00126 #  define BOOST_HAS_RVALUE_REFS
00127 #  define BOOST_HAS_STATIC_ASSERT
00128 #  define BOOST_HAS_VARIADIC_TMPL
00129 #else
00130 #  define BOOST_NO_DECLTYPE
00131 #  define BOOST_NO_RVALUE_REFERENCES
00132 #  define BOOST_NO_STATIC_ASSERT
00133 
00134 // Variadic templates compiler: 
00135 //   http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
00136 #  ifdef __VARIADIC_TEMPLATES
00137 #    define BOOST_HAS_VARIADIC_TMPL
00138 #  else
00139 #    define BOOST_NO_VARIADIC_TEMPLATES
00140 #  endif
00141 #endif
00142 
00143 #if !defined(__GXX_EXPERIMENTAL_CXX0X__) || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)
00144 #  define BOOST_NO_INITIALIZER_LISTS
00145 #  define BOOST_NO_AUTO_DECLARATIONS
00146 #endif
00147 
00148 // ConceptGCC compiler:
00149 //   http://www.generic-programming.org/software/ConceptGCC/
00150 #ifdef __GXX_CONCEPTS__
00151 #  define BOOST_HAS_CONCEPTS
00152 #  define BOOST_COMPILER "ConceptGCC version " __VERSION__
00153 #endif
00154 
00155 #ifndef BOOST_COMPILER
00156 #  define BOOST_COMPILER "GNU C++ version " __VERSION__
00157 #endif
00158 
00159 //
00160 // versions check:
00161 // we don't know gcc prior to version 2.90:
00162 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
00163 #  error "Compiler not configured - please reconfigure"
00164 #endif
00165 //
00166 // last known and checked version is 4.3 (Pre-release):
00167 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 3))
00168 #  if defined(BOOST_ASSERT_CONFIG)
00169 #     error "Unknown compiler version - please run the configure tests and report the results"
00170 #  else
00171 // we don't emit warnings here anymore since there are no defect macros defined for
00172 // gcc post 3.4, so any failures are gcc regressions...
00173 //#     warning "Unknown compiler version - please run the configure tests and report the results"
00174 #  endif
00175 #endif
00176 
00177 


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