NoCopy for overriding @disable this(this)
Uknown
sireeshkodali1 at gmail.com
Thu Apr 12 15:42:52 UTC 2018
On Thursday, 12 April 2018 at 12:16:53 UTC, Shachar Shemesh wrote:
> [...]
> test.d(19): Error: cannot convert &S to const(ubyte*) at
> compile time
> [...]
> Thank you,
> Shachar
The problem seems to be that cast is happening at compile time,
as opposed to run time, as you might have already figured out. Do
you need to really do this cast at compile time? I tried running
the snippet you gave here: https://run.dlang.io/is/im19nL
Is this how you intend for it to be used? Then there's no need
for compile time casts. If not, could you give an example of how
`NoCopy` would be used?
More information about the Digitalmars-d
mailing list