First experience with std.algorithm: I had to resort to writing a 'contains' function.

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Tue Jun 8 04:29:31 PDT 2010


On Tue, 08 Jun 2010 23:23:39 +1200, Bernard Helyer wrote:

> [...]
> 
> If I have unittests on, this assert is triggered:
> 
> static assert(is(typeof(s) == Tuple!(string, float)));
> 
> [...]
> 
> And my problems went away. I assume what I experienced is a bug, but I'm
> not sure, so I thought I'd share my experience.


Would it be this bug, perhaps?

    http://d.puremagic.com/issues/show_bug.cgi?id=4294

It was just reported, following the discussion in the "Tuple to tuple 
conversion" thread on D.learn.

It's a really annoying bug which I've come across a few times, and I'm 
glad Simen has been able to narrow it down so much.

-Lars


More information about the Digitalmars-d mailing list