17 Jan
2006
17 Jan
'06
5:52 a.m.
Eric Niebler wrote:
Thorsten Ottosen wrote:
as_mutable();
The latter would be a cast from rvalue to lvalue like it happens in boost.foreach.
Not sure what you're referring to. Boost.Foreach does no such rvalue-to-lvalue cast.
So this wouldn't compile: vector<int> foo(); ... BOOST_FOREACH( int& r, foo() ) ++r ? -Thorsten