Fixes for Comeau with Borland as backend.

[SVN r17588]
This commit is contained in:
Peter Dimov
2003-02-22 13:40:23 +00:00
parent 52032cf9dd
commit 2b71faafb6
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,8 @@ struct is_pointer_impl
} // namespace detail
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_pointer,T,::boost::detail::is_pointer_impl<T>::value)
#ifdef __BORLANDC__
#if defined(__BORLANDC__) && !defined(__COMO__)
template <class T> struct is_pointer<T&>
{ BOOST_STATIC_CONSTANT(bool, value = false); };
template <class T> struct is_pointer<T&const>

View File

@ -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