From 3b86fe6cb4a3d6d88bf43a8366bbd4b27d8daa38 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 28 May 2015 13:13:45 +0100 Subject: [PATCH] Disable typeof when BOOST_COMMON_TYPE_DONT_USE_TYPEOF is set. --- include/boost/type_traits/common_type.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/type_traits/common_type.hpp b/include/boost/type_traits/common_type.hpp index 84b9fff..fe5cbbc 100644 --- a/include/boost/type_traits/common_type.hpp +++ b/include/boost/type_traits/common_type.hpp @@ -19,7 +19,7 @@ # define BOOST_COMMON_TYPE_DONT_USE_TYPEOF #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF) // All supported GCC versions (and emulations thereof) support __typeof__ #define BOOST_COMMON_TYPE_USE_TYPEOF #endif @@ -36,7 +36,6 @@ #include #elif defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF) #include -#include #else #include // boost wonders never cease! #include