Ticket #9903: 0001-utility-fix-GCC-Wundef-warning.patch

File 0001-utility-fix-GCC-Wundef-warning.patch, 1.0 KB (added by mstahl@…, 9 years ago)
  • include/boost/utility/result_of.hpp

    From 2e4468efeabdea5d0ab9c41d11921ec828d121b4 Mon Sep 17 00:00:00 2001
    From: Tor Lillqvist <tml@iki.fi>
    Date: Mon, 14 Apr 2014 12:48:44 +0200
    Subject: [PATCH] utility: fix GCC -Wundef warning
    
    Signed-off-by: Michael Stahl <mstahl@redhat.com>
    ---
     include/boost/utility/result_of.hpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/include/boost/utility/result_of.hpp b/include/boost/utility/result_of.hpp
    index 9ea151d..032c39f 100644
    a b template<typename F> struct cpp0x_result_of;  
    8484// There doesn't seem to be any other way to turn this off such that the presence of
    8585// the user-defined operator,() below doesn't cause spurious warning all over the place,
    8686// so unconditionally turn it off.
    87 #if BOOST_MSVC
     87#if defined(BOOST_MSVC) && BOOST_MSVC
    8888#  pragma warning(disable: 4913) // user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used
    8989#endif
    9090