
27 Feb
2006
27 Feb
'06
11:21 a.m.
AlisdairM wrote:
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!!
T can't be a reference type in this context, as it's being deduced from a T const & t parameter.
-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) {