Summary: repeat(value, n) fails to compile
--- Comment #0 from Jonathan M Davis <jmdavisp...@gmx.com> 2011-02-19 21:41:43
Take this program:
auto a = take(repeat(5), 2);
auto b = repeat(5, 2);
test.d(6): Error: template std.range.repeat(T) does not match any function
test.d(6): Error: template std.range.repeat(T) cannot deduce template function
from argument types !()(int,int)
The first line in main compiles but the second doesn't, even though the two
lines are supposed to be equivalent. What's particularly baffling is that the
body of repeat(value, n) is essentially identical to the first line in main.
So, I really don't know what's going on here, but regardless, repeat(value, n)
appears to be broken.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------