
15 Sep
2004
15 Sep
'04
5:15 p.m.
Neal D. Becker wrote:
This handy little item, lvalue_cast, would make a useful addition to boost. I didn't write it, and I don't recall who did.
template<class T> inline T& lvalue_cast (const T& rvalue) { return const_cast<T&> (rvalue); }
I wrote something like this, that has the upshot of being safe. ;) http://article.gmane.org/gmane.comp.lib.boost.devel/101531 -- Daniel Wallin