
24 Jun
2005
24 Jun
'05
12:41 p.m.
"Robert Ramey" <ramey@rrsd.com> writes:
I'm saying that
const X &x = m_x; ar << x; is different thatn const x = m_x ar << x;
I'm sorry, but unless you're doing something to detect that X's copy ctor is called in the 2nd case, what you just said is impossible. Aside from one copy ctor the 2 snippets are identical from the language's point-of-view. -- Dave Abrahams Boost Consulting www.boost-consulting.com