
29 Jun
2004
29 Jun
'04
9:42 p.m.
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.