Ticket #9474: has_new_operator.hpp.patch
File has_new_operator.hpp.patch, 966 bytes (added by , 9 years ago) |
---|
-
has_new_operator.hpp
18 18 // should be the last #include 19 19 #include <boost/type_traits/detail/bool_trait_def.hpp> 20 20 21 #if defined(new) 22 #define BOOST_TT_AUX_MACRO_NEW_DEFINED 23 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1310) 24 #pragma push_macro("new") 25 #else 26 #error Unsupported compiler. Macro "new" must be hidden. 27 #endif 28 #undef new 29 #endif 30 21 31 namespace boost { 22 32 namespace detail { 23 33 template <class U, U x> … … 135 145 136 146 } // namespace boost 137 147 148 #if defined(BOOST_TT_AUX_MACRO_NEW_DEFINED) 149 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1310) 150 #pragma pop_macro("new") 151 #endif 152 #undef BOOST_TT_AUX_MACRO_NEW_DEFINED 153 #endif 154 138 155 #include <boost/type_traits/detail/bool_trait_undef.hpp> 139 156 140 157 #endif // BOOST_TT_HAS_NEW_OPERATOR_HPP_INCLUDED