From 2e4468efeabdea5d0ab9c41d11921ec828d121b4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 14 Apr 2014 12:48:44 +0200 Subject: [PATCH] utility: fix GCC -Wundef warning Signed-off-by: Michael Stahl --- 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/include/boost/utility/result_of.hpp +++ b/include/boost/utility/result_of.hpp @@ -84,7 +84,7 @@ template struct cpp0x_result_of; // There doesn't seem to be any other way to turn this off such that the presence of // the user-defined operator,() below doesn't cause spurious warning all over the place, // so unconditionally turn it off. -#if BOOST_MSVC +#if defined(BOOST_MSVC) && BOOST_MSVC # pragma warning(disable: 4913) // user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used #endif -- 1.8.3.1