From ff4614a2a00a773fad7291c065decf5358dbcca3 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 25 Oct 2002 11:59:36 +0000 Subject: [PATCH] Undone previous fixes for gcc >= 3 [SVN r15983] --- include/boost/type_traits/is_reference.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/type_traits/is_reference.hpp b/include/boost/type_traits/is_reference.hpp index 3c9eca1..243ac9e 100644 --- a/include/boost/type_traits/is_reference.hpp +++ b/include/boost/type_traits/is_reference.hpp @@ -43,7 +43,7 @@ BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_reference,T& volatile,true BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_reference,T& const volatile,true) #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ < 3) // these allow us to work around illegally cv-qualified reference types. BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_reference,T const ,::boost::is_reference::value) BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_reference,T volatile ,::boost::is_reference::value) @@ -100,3 +100,4 @@ BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_reference,void const volatile,false) #include "boost/type_traits/detail/bool_trait_undef.hpp" #endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED +