Thread overview | |||||
---|---|---|---|---|---|
|
October 22, 2015 What's wrong in this templatized operator overload ? | ||||
---|---|---|---|---|
| ||||
code: --- struct Foo { bool opIn_r(T)(T t){return false;} } static immutable Foo foo; // ouch //static Foo foo; // OK void main() { assert("a" !in foo); } |
October 22, 2015 Re: What's wrong in this templatized operator overload ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MobPassenger | On Thursday, 22 October 2015 at 03:18:25 UTC, MobPassenger wrote: > code: Plz don't reply, there's been a forum bug while posting. Full post is here: http://forum.dlang.org/thread/kaqyeiakjunqoexoskrw@forum.dlang.org |
October 22, 2015 Re: What's wrong in this templatized operator overload ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MobPassenger | On Thursday, 22 October 2015 at 03:21:35 UTC, MobPassenger wrote:
> On Thursday, 22 October 2015 at 03:18:25 UTC, MobPassenger wrote:
>> code:
>
> Plz don't reply, there's been a forum bug while posting.
What forum bug would that be?
|
Copyright © 1999-2021 by the D Language Foundation