C++: rvalue references for *this

Bronek Kozicki brok@spamcop.net
Fri Dec 2 18:54:00 GMT 2011


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.


B.



More information about the Gcc mailing list