
3 May
2005
3 May
'05
4:49 a.m.
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> writes:
returns temporary. FOREACH make copy of this temporary into another temporary.
Are you sure that copy can't be elided?
I do not know. FOREACH makes copy from temporary into simple variant using placement new.
Hm, unlikely. Oh well, there's always move semantics ;-) -- Dave Abrahams Boost Consulting www.boost-consulting.com