Ticket #5091: vacpp.hpp.patch

File vacpp.hpp.patch, 2.5 KB (added by hstong@…, 12 years ago)

Patch for vacpp.hpp for v11.1

  • boost/config/compiler/vacpp.hpp

    old new  
    2727
    2828#if (__IBMCPP__ <= 600) || !defined(BOOST_STRICT_CONFIG)
    2929#  define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
    30 #  define BOOST_NO_INITIALIZER_LISTS
    3130#endif
    3231
    3332#if (__IBMCPP__ <= 1110)
     
    5453#error "Compiler not supported or configured - please reconfigure"
    5554#endif
    5655//
    57 // last known and checked version is 600:
    58 #if (__IBMCPP__ > 1010)
     56// last known and checked version is 1110:
     57#if (__IBMCPP__ > 1110)
    5958#  if defined(BOOST_ASSERT_CONFIG)
    6059#     error "Unknown compiler version - please run the configure tests and report the results"
    6160#  endif
    6261#endif
    6362
    6463// Some versions of the compiler have issues with default arguments on partial specializations
     64#if __IBMCPP__ <= 1010
    6565#define BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
     66#endif
    6667
    6768//
    6869// C++0x features
    6970//
    7071//   See boost\config\suffix.hpp for BOOST_NO_LONG_LONG
    7172//
    72 #define BOOST_NO_AUTO_DECLARATIONS
    73 #define BOOST_NO_AUTO_MULTIDECLARATIONS
    74 #define BOOST_NO_CHAR16_T
    75 #define BOOST_NO_CHAR32_T
     73#if ! __IBMCPP_AUTO_TYPEDEDUCTION
     74#  define BOOST_NO_AUTO_DECLARATIONS
     75#  define BOOST_NO_AUTO_MULTIDECLARATIONS
     76#endif
     77#if ! __IBMCPP_UTF_LITERAL__
     78#  define BOOST_NO_CHAR16_T
     79#  define BOOST_NO_CHAR32_T
     80#endif
    7681#define BOOST_NO_CONCEPTS
    7782#define BOOST_NO_CONSTEXPR
    78 #define BOOST_NO_DECLTYPE
     83#if ! __IBMCPP_DECLTYPE
     84#  define BOOST_NO_DECLTYPE
     85#else
     86#  define BOOST_HAS_DECLTYPE
     87#endif
    7988#define BOOST_NO_DEFAULTED_FUNCTIONS
    8089#define BOOST_NO_DELETED_FUNCTIONS
    8190#define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
    82 #define BOOST_NO_EXTERN_TEMPLATE
    83 #define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
     91#if ! __IBMCPP_EXTERN_TEMPLATE
     92#  define BOOST_NO_EXTERN_TEMPLATE
     93#endif
     94#if ! __IBMCPP_VARIADIC_TEMPLATES
     95// not enabled separately at this time
     96#  define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
     97#endif
     98#define BOOST_NO_INITIALIZER_LISTS
    8499#define BOOST_NO_LAMBDAS
    85100#define BOOST_NO_NULLPTR
    86101#define BOOST_NO_RAW_LITERALS
    87102#define BOOST_NO_RVALUE_REFERENCES
    88103#define BOOST_NO_SCOPED_ENUMS
    89104#define BOOST_NO_SFINAE_EXPR
    90 #define BOOST_NO_STATIC_ASSERT
     105#if ! __IBMCPP_STATIC_ASSERT
     106#  define BOOST_NO_STATIC_ASSERT
     107#endif
    91108#define BOOST_NO_TEMPLATE_ALIASES
    92109#define BOOST_NO_UNICODE_LITERALS
    93 #define BOOST_NO_VARIADIC_TEMPLATES
    94 #define BOOST_NO_VARIADIC_MACROS
     110#if ! __IBMCPP_VARIADIC_TEMPLATES
     111#  define BOOST_NO_VARIADIC_TEMPLATES
     112#endif
     113#if ! __C99_MACRO_WITH_VA_ARGS
     114#  define BOOST_NO_VARIADIC_MACROS
     115#endif
    95116
    96117
    97118