From 2b71faafb618bf6858ae81e8b1975526b387fe33 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 22 Feb 2003 13:40:23 +0000 Subject: [PATCH] Fixes for Comeau with Borland as backend. [SVN r17588] --- include/boost/type_traits/is_pointer.hpp | 3 ++- include/boost/type_traits/is_reference.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/type_traits/is_pointer.hpp b/include/boost/type_traits/is_pointer.hpp index c8491d5..ce5c302 100644 --- a/include/boost/type_traits/is_pointer.hpp +++ b/include/boost/type_traits/is_pointer.hpp @@ -68,7 +68,8 @@ struct is_pointer_impl } // namespace detail BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_pointer,T,::boost::detail::is_pointer_impl::value) -#ifdef __BORLANDC__ + +#if defined(__BORLANDC__) && !defined(__COMO__) template struct is_pointer { BOOST_STATIC_CONSTANT(bool, value = false); }; template struct is_pointer diff --git a/include/boost/type_traits/is_reference.hpp b/include/boost/type_traits/is_reference.hpp index 49430c2..b92de3d 100644 --- a/include/boost/type_traits/is_reference.hpp +++ b/include/boost/type_traits/is_reference.hpp @@ -33,7 +33,7 @@ namespace boost { BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_reference,T,false) BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_reference,T&,true) -#if defined(__BORLANDC__) +#if defined(__BORLANDC__) && !defined(__COMO__) // these are illegal specialisations; cv-qualifies applied to // references have no effect according to [8.3.2p1], // C++ Builder requires them though as it treats cv-qualified