From 3d90fc5e727dec832827154669fd57c2cdb23678 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Sat, 30 Oct 2004 09:34:26 +0000 Subject: [PATCH] fix ref_ct_test.cpp for Borland [SVN r25972] --- ref_ct_test.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ref_ct_test.cpp b/ref_ct_test.cpp index f072537..a3b5eea 100644 --- a/ref_ct_test.cpp +++ b/ref_ct_test.cpp @@ -7,8 +7,12 @@ // see 'ref_test.cpp' for run-time part #include -#include +#include +#include #include +#include + +#include namespace { @@ -35,13 +39,23 @@ void is_reference_wrapper_test(T) template< typename R, typename Ref > void cxx_reference_test(Ref) { +#if BOOST_WORKAROUND(__BORLANDC__, < 0x600) + typedef typename boost::remove_const::type ref; + BOOST_STATIC_ASSERT((boost::is_same::value)); +#else BOOST_STATIC_ASSERT((boost::is_same::value)); +#endif } template< typename R, typename Ref > void unwrap_reference_test(Ref) { +#if BOOST_WORKAROUND(__BORLANDC__, < 0x600) + typedef typename boost::remove_const::type ref; + typedef typename boost::unwrap_reference::type type; +#else typedef typename boost::unwrap_reference::type type; +#endif BOOST_STATIC_ASSERT((boost::is_same::value)); }