Move Constructor Syntax
Walter Bright
newshound2 at digitalmars.com
Fri Oct 11 06:09:31 UTC 2024
On 10/10/2024 11:57 AM, Richard (Rikki) Andrew Cattermole wrote:
> For whatever reason, this feature just keeps giving me the nagging sensation
> that something isn't right with the motivation.
Something I overlooked. With the original plan,
```
this(ref S) // copy constructor
this(S) // move constructor
```
Generally speaking, functions that are overloaded should do the same thing, just
with different arguments. But the copy and move overloads do something quite
different. This is difference is what has been causing me frustrating problems
with implementing it.
More information about the Digitalmars-d
mailing list