Boost logo

Boost :

From: alnsn_at_[hidden]
Date: 2004-06-29 16:42:48


I've just realised that this works as well:

template<class T>
boost::reference_wrapper<T const> const ccref(T const volatile& r)
{
    return boost::reference_wrapper<T const>(const_cast<T const&>(r));
}

It's late night now. I'll think about it tomorrow.


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