[phobos] phobos commit, revision 1687
Andrei Alexandrescu
andrei at erdani.com
Wed Jun 23 05:11:30 PDT 2010
That should work, what was the error?
Andrei
On 06/23/2010 03:53 AM, dsource.org wrote:
> phobos commit, revision 1687
>
>
> user: kyllingstad
>
> msg:
> Fixed unlisted bug: std.range.cycle() doesn't work with infinite ranges.
>
> It was attempted to use the eponymous template trick inside a templated struct, like this:
>
> struct Cycle(R)
> {
> static if (isInfinite!R) alias R Cycle;
> ...
> }
>
> but of course that doesn't work. I've written the isInfinite case as a separate template instead, and added a unittest for it.
>
> http://www.dsource.org/projects/phobos/changeset/1687
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
More information about the phobos
mailing list