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.

Reply via email to