Ticket #13646: pop_warnings.patch

File pop_warnings.patch, 1.8 KB (added by daniel.geelen@…, 4 years ago)

Patch to fix the problem

  • include/boost/type_traits/has_minus.hpp

    diff -ur a/include/boost/type_traits/has_minus.hpp b/include/boost/type_traits/has_minus.hpp
    a b  
    8888   }
    8989
    9090   template <class T, class U = T, class Ret = boost::binary_op_detail::dont_care>
    91    struct has_minus : 
     91   struct has_minus :
    9292      public boost::binary_op_detail::has_minus_void_ptr_filter<
    93          T, U, Ret, 
    94          boost::is_void<typename remove_pointer<typename remove_reference<T>::type>::type>::value 
     93         T, U, Ret,
     94         boost::is_void<typename remove_pointer<typename remove_reference<T>::type>::type>::value
    9595         || boost::is_void<typename remove_pointer<typename remove_reference<U>::type>::type>::value> {};
    9696
    9797
     
    150150#undef BOOST_TT_FORBIDDEN_IF
    151151
    152152#endif
     153
     154#if defined(BOOST_MSVC)
     155#   pragma warning ( pop )
     156#endif
     157
    153158#endif
  • include/boost/type_traits/has_minus_assign.hpp

    diff -ur a/include/boost/type_traits/has_minus_assign.hpp b/include/boost/type_traits/has_minus_assign.hpp
    a b  
    155155#undef BOOST_TT_FORBIDDEN_IF
    156156
    157157#endif
     158
     159#if defined(BOOST_MSVC)
     160#   pragma warning ( pop )
     161#endif
     162
    158163#endif
  • include/boost/type_traits/has_plus_assign.hpp

    diff -ur a/include/boost/type_traits/has_plus_assign.hpp b/include/boost/type_traits/has_plus_assign.hpp
    a b  
    153153#undef BOOST_TT_FORBIDDEN_IF
    154154
    155155#endif
     156
     157#if defined(BOOST_MSVC)
     158#   pragma warning ( pop )
     159#endif
     160
    156161#endif