Ticket #6900: vacpp.hpp.patch

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

Add new C++2011 features for VACPP, v12.1.

  • boost/config/compiler/vacpp.hpp

    old new  
    7878#  define BOOST_NO_CHAR16_T
    7979#  define BOOST_NO_CHAR32_T
    8080#endif
    81 #define BOOST_NO_CONSTEXPR
     81#if ! __IBMCPP_CONSTEXPR
     82#  define BOOST_NO_CONSTEXPR
     83#endif
    8284#if ! __IBMCPP_DECLTYPE
    8385#  define BOOST_NO_DECLTYPE
    8486#else
     
    8789#define BOOST_NO_DECLTYPE_N3276
    8890#define BOOST_NO_DEFAULTED_FUNCTIONS
    8991#define BOOST_NO_DELETED_FUNCTIONS
    90 #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
     92#if ! __IBMCPP_EXPLICIT_CONVERSION_OPERATORS
     93#  define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
     94#endif
    9195#if ! __IBMCPP_EXTERN_TEMPLATE
    9296#  define BOOST_NO_EXTERN_TEMPLATE
    9397#endif
     
    101105#define BOOST_NO_NOEXCEPT
    102106#define BOOST_NO_NULLPTR
    103107#define BOOST_NO_RAW_LITERALS
    104 #define BOOST_NO_RVALUE_REFERENCES
    105 #define BOOST_NO_SCOPED_ENUMS
     108#if ! __IBMCPP_RVALUE_REFERENCES
     109#  define BOOST_NO_RVALUE_REFERENCES
     110#endif
     111#if ! __IBMCPP_SCOPED_ENUM
     112#  define BOOST_NO_SCOPED_ENUMS
     113#endif
    106114#define BOOST_NO_SFINAE_EXPR
    107115#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
    108116#if ! __IBMCPP_STATIC_ASSERT