Stop writeln from calling object destructor

data pulverizer data.pulverizer at gmail.com
Sun Oct 2 17:55:07 UTC 2022


On Sunday, 2 October 2022 at 17:28:51 UTC, data pulverizer wrote:
> Sorry I'll need to implement all the overloaded copy 
> constructors and see if that fixes it.

I've got it, something weird happened to my copy constructor. 
This was my original attempt and was ignored (didn't run in the 
copy constructor):

```
this(T)(ref return scope T original)
if(is(T == RVector!(Type)))
{
     //... code ...
}
```


But this now works:


```
this(ref return scope RVector!(Type) original)
{
     //... code ...
}
```

No idea why. `Type` is a template parameter of the object.


More information about the Digitalmars-d-learn mailing list