Thread overview
What's wrong in this templatized operator overload ?
Oct 22, 2015
MobPassenger
Oct 22, 2015
MobPassenger
Oct 22, 2015
Vladimir Panteleev
October 22, 2015
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
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
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?