Why not? If the method is const, it can't modify the object anyway.
why can't I call const methods on shared objects?
Vlad Levenfeld via Digitalmars-d-learn Fri, 09 May 2014 14:41:21 -0700
Error: non-shared const method is not callable using a shared
mutable object
- why can't I call const method... Vlad Levenfeld via Digitalmars-d-learn
- Re: why can't I call con... Steven Schveighoffer via Digitalmars-d-learn
- Re: why can't I call... Vlad Levenfeld via Digitalmars-d-learn
- Re: why can't I ... Vlad Levenfeld via Digitalmars-d-learn
- Re: why can'... Vlad Levenfeld via Digitalmars-d-learn
- Re: why can'... Steven Schveighoffer via Digitalmars-d-learn
- Re: why... Vlad Levenfeld via Digitalmars-d-learn
- Re: why... monarch_dodra via Digitalmars-d-learn
- Re: why can't I ... FreeSlave via Digitalmars-d-learn