On Thursday, 22 October 2015 at 03:19:49 UTC, MobPassenger wrote:
code: --- struct Foo { bool opIn_r(T)(T t){return false;} }
This needs to be marked with const: struct Foo { bool opIn_r(T)(T t) const {return false;} }
Mike Parker via Digitalmars-d-learn Wed, 21 Oct 2015 21:06:02 -0700
On Thursday, 22 October 2015 at 03:19:49 UTC, MobPassenger wrote:
code: --- struct Foo { bool opIn_r(T)(T t){return false;} }
This needs to be marked with const: struct Foo { bool opIn_r(T)(T t) const {return false;} }