Newsgroups: comp.std.c++
From: Howard Hinnant <hinn...@metrowerks.com>
Date: Mon, 18 Jul 2005 10:54:11 CST
Local: Mon, Jul 18 2005 12:54 pm
Subject: Re: status of rvalue reference proposal (n1377, n1770, et al)
In article <1121517407.194853.244...@g14g2000cwa.googlegroups.com>,
"Russell Yanofsky" <russell.yanof...@us.army.mil> wrote: > Thanks for the detailed replies. That was exactly the kind of I believe you are correct (but I could be mistaken). The intent of 5p6 > information I was looking for. > I've got a separate question on N1770. The proposed clause on > If an expression initially has the type ``reference to T'' > What is the bit about pointer-to-member operations? I'd think there in N1770 is to implement the general notion of N1377: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1377.htm#Ret... > Earlier this paper proposed that: That is, if a function returns an rvalue reference: > Named rvalue references are treated as lvalues. > This thought will now be completed: > Unnamed rvalue references are treated as rvalues. A&& foo(); then that function result is treated as an rvalue. bar(foo()); // foo() is treated as an rvalue when But rvalue references that have an identifier attached to them, such as void foo(A&& a) } The standard has no concept of "named and unnamed references", and so the concept was translated into currently accepted standardeeze. It is quite possible that a bug or two crept in during that translation. Thanks for bringing this possibility to our attention. -Howard --- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||