GCC compile problem ...
John Love-Jensen
eljay@adobe.com
Mon Sep 30 04:49:00 GMT 2002
Hi Sebastian,
> I think, that this is not true. If you assign a temporary object to a constant
> reference, the object will survive until the reference is destroyed.
Thanks Sebastian, I stand corrected! A const-reference has lifespan beyond
the full expression.
q.v. Stroustrup's C++PL 3rd ed, section 10.4.10
Sincerely,
--Eljay
Live like you'll die tomorrow. Learn like you'll live forever.
More information about the Gcc-help
mailing list