Passing this to void *

Stefan Koch uplink.coder at googlemail.com
Wed Nov 22 15:14:32 UTC 2017


On Wednesday, 22 November 2017 at 15:11:08 UTC, Tim Hsu wrote:
> On Wednesday, 22 November 2017 at 15:07:54 UTC, Stefan Koch
>>
>> &this will do.
>
> I've tried it in the first place.
>
> ...
>
> Error: this is not an lvalue

In that case casting to void* should be fine.


More information about the Digitalmars-d-learn mailing list