http://d.puremagic.com/issues/show_bug.cgi?id=7824
Summary: isInputRange fails to recognize inout(T)[] Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: d...@dawgfoto.de --- Comment #0 from d...@dawgfoto.de 2012-04-04 17:01:11 PDT --- cat > bug.d << CODE import std.range; inout(int)[] foo(inout(int)[] range) { static assert(isInputRange!(typeof(range))); return range; } CODE dmd -c bug -------- template isInputRange(R) { enum bool isInputRange = is(typeof( { ::: // This test fails, because "inout(int) h = r.front" can // only be declared in an inout function. auto h = r.front; // can get the front of the range })); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------