inout method is not callable using a const object

Ali Çehreli acehreli at yahoo.com
Fri Sep 6 14:08:19 PDT 2013


I think it is the same issue then.

On 09/06/2013 02:00 PM, Jonathan Crapuchettes wrote:

 >>   >      inout(DataT*) opIndex(const Address addr) inout {

Unless Address is an alias of int, there is no matching opIndex overload 
for the following call:

 > 	auto dp = cStore[16057];	//<-- ERROR

Ali



More information about the Digitalmars-d-learn mailing list