move object from heap to stack

Namespace rswhite4 at googlemail.com
Thu Sep 20 08:05:47 PDT 2012


On Thursday, 20 September 2012 at 14:15:23 UTC, monarch_dodra 
wrote:
> On Thursday, 20 September 2012 at 14:09:29 UTC, Namespace wrote:
>
>> http://dpaste.dzfl.pl/edit/361a54eb
>> With
>> [code]
>> @disable this(this);
>> [/code]
>> this don't work (as expected). But with the copy ctor but 
>> without ".get" you earn a segmentation fault (as you can see). 
>> So you can disable the copy ctor but without using .get you're 
>> not get what you want. Even with scoped, but scoped's getter 
>> name is too long.
>
> Wrong link.

Try this: http://dpaste.dzfl.pl/9247af54


More information about the Digitalmars-d-learn mailing list