Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-09-15 12:15:25

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. ;)

Daniel Wallin

Boost list run by bdawes at, gregod at, cpdaniel at, john at