Error: mutable method isolated.graphics.g3d.model.Model.begin is not callable using a const object
Begah via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 6 14:37:11 PDT 2016
On Monday, 6 June 2016 at 21:25:16 UTC, Alex Parrill wrote:
> On Monday, 6 June 2016 at 21:16:18 UTC, Begah wrote:
>> Does the key of a associative array will be const if the
>> reference is requested?
>
> That's probably what it is, actually. Modifying the key with
> the ref could cause the hash of the key to change without the
> hashtable knowing about it, causing it to break.
>
> You might be able to get away with casting the const away, if
> you are sure it won't modify the hash or equality check.
Thanks for the help, i'll just cast away the const
More information about the Digitalmars-d-learn
mailing list