Error: mutable method isolated.graphics.g3d.model.Model.begin is not callable using a const object

Alex Parrill via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 6 14:25:16 PDT 2016


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.


More information about the Digitalmars-d-learn mailing list