From 4b2788fdcbab6ba942f39036de517d894e7c321c Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 4 Nov 2002 12:24:50 +0000 Subject: [PATCH] Added Borland specific fixes for references to arrays. [SVN r16088] --- include/boost/type_traits/is_same.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/type_traits/is_same.hpp b/include/boost/type_traits/is_same.hpp index d58f292..313312b 100644 --- a/include/boost/type_traits/is_same.hpp +++ b/include/boost/type_traits/is_same.hpp @@ -26,6 +26,11 @@ namespace boost { BOOST_TT_AUX_BOOL_TRAIT_DEF2(is_same,T,U,false) BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC2_1(typename T,is_same,T,T,true) +#ifdef __BORLANDC__ +// without this, Borland's compiler gives the wrong answer for +// references to arrays: +BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC2_1(typename T,is_same,T&,T&,true) +#endif #else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION