Issue with const

Timon Gehr timon.gehr at gmx.ch
Mon Apr 9 07:52:55 PDT 2012


On 04/09/2012 04:49 PM, Jacob Carlborg wrote:
>
> But now when I compile this code I get this error:
>
> Error: cannot implicitly convert expression (this.data) of type
> const(void*) to void*
>
> Any idea how to solve this? Or would I need to drop const.
>
> --
> /Jacob Carlborg

Either clone the data too or use inout.


More information about the Digitalmars-d-learn mailing list