From: Raoul Gough (RaoulGough_at_[hidden])
Date: 2004-02-17 18:35:58
"Peter Dimov" <pdimov_at_[hidden]> writes:
> Raoul Gough wrote:
>> "Peter Dimov" <pdimov_at_[hidden]> writes:
>>> I seem to recall attempts to strike down that second bullet of the
>>> first bullet of the second bullet of 8.3.5/5 :-) and demand that the
>>> reference be bound to the object represented by the rvalue. At the
>>> time, this seemed a reasonable idea, but then I came up with the ROM
>>> example. Maybe it's already widely known and I'm just reinventing
>>> the wheel.
>> BTW, what does the standard actually say about the const-ness of
>> introduced temporaries?
> "cv1", where "cv1 shall be 'const'".
Thanks, I see it now - the reference is to type cv1 T1 and is bound to
cv2 T2, but any temporaries are type cv1 T2. I never quite made the
-- Raoul Gough. export LESS='-X'
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk