inout method is not callable using a const object
Jonathan Crapuchettes
jcrapuchettes at gmail.com
Fri Sep 6 15:03:13 PDT 2013
On Fri, 06 Sep 2013 14:08:19 -0700, Ali Çehreli wrote:
> 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
Thank you for your help. For some reason, no one else in the office
noticed that problem. In my code Address was something like TypeTuple!
(int, char) and I was trying to call opIndex(int, int).
Thank you again.
More information about the Digitalmars-d-learn
mailing list