Disable typeof when BOOST_COMMON_TYPE_DONT_USE_TYPEOF is set.

This commit is contained in:
jzmaddock
2015-05-28 13:13:45 +01:00
parent d57c36d056
commit 3b86fe6cb4

View File

@ -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 <boost/type_traits/add_rvalue_reference.hpp>
#elif defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/detail/common_type_imp.hpp>
#else
#include <boost/typeof/typeof.hpp> // boost wonders never cease!
#include <boost/type_traits/detail/common_type_imp.hpp>