
The following workaround needs to be updated for BCB2006. Note I have also switched T const to const T. This does not show up in any of the regression tests, but should make a difference (to Borland) when T is a reference type. Don't ask!! cvs diff -u -wb -- boost\ref.hpp (in directory E:\sourceforge\devel\boost\) Index: boost/ref.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/ref.hpp,v retrieving revision 1.23 diff -u -w -b -r1.23 ref.hpp --- boost/ref.hpp 28 Nov 2004 03:20:58 -0000 1.23 +++ boost/ref.hpp 27 Feb 2006 07:57:50 -0000 @@ -54,7 +54,7 @@ T* t_; }; -# if defined(__BORLANDC__) && (__BORLANDC__ <= 0x570) +# if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581) ) # define BOOST_REF_CONST # else # define BOOST_REF_CONST const @@ -65,9 +65,9 @@ return reference_wrapper<T>(t); } -template<class T> inline reference_wrapper<T const> BOOST_REF_CONST cref(T const & t) +template<class T> inline reference_wrapper< const T > BOOST_REF_CONST cref(const T & t) { - return reference_wrapper<T const>(t); + return reference_wrapper< const T >(t); // Test this with const T before submitting patch } # undef BOOST_REF_CONST -- AlisdairM