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)); }