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.