Issue with const

Jacob Carlborg doob at me.com
Mon Apr 9 08:22:54 PDT 2012


On 2012-04-09 16:52, Timon Gehr wrote:
> 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.

Where would I use inout, on "clone"?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list