Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-02-27 06:21:47


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)
> {


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk