On 2 Dec 2011, at 19:54, Bronek Kozicki wrote: > On 02/12/2011 12:11, Paolo Carlini wrote: >> On 12/02/2011 11:17 AM, Hans Aberg wrote: >>> [I am not on this list, so please cc me.] >>> >>> On the link below it says that Bronek Kozicki has been working on C++ >>> rvalue references for *this. What is the progress of this feature? >> Let's ask him, seems the obvious thing to do. > > Hi > > it's close to completion, I'm hoping remaining 5% of work does not strech to > 50%. Basically what is missing in mechanism in gcc/cp/call.c to actually bind > implicit *this object to rvalue or lvalue, and the difficuly here is that > "this" object is internally defined and bound as a pointer, and not as a > reference as prescribed by the standard. > > Well there is also a question of paperwork (disclaimer of rights) from my > employer which does not seem very forthcoming. > > I wanted this piece of work to be in version 4.7 but frankly this seems > unrealistic now.
Thanks for the reply. I found that in a dynamic polymorphy (class hierarchy with virtual functions), one can nicely use it for complementary pure and mutative versions. A workaround might be simply giving them different names. Hans