Skip to content

Commit

Permalink
Fix issue 17661: isInputRange should work with .front that returns re…
Browse files Browse the repository at this point in the history
…ference to parameter.
  • Loading branch information
H. S. Teoh committed Aug 10, 2017
1 parent e99cf38 commit be9ad6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/range/primitives.d
Expand Up @@ -164,7 +164,7 @@ Returns:
enum bool isInputRange(R) =
is(typeof(R.init) == R)
&& is(ReturnType!((R r) => r.empty) == bool)
&& is(typeof((R r) => r.front))
&& is(typeof((return ref R r) => r.front))
&& !is(ReturnType!((R r) => r.front) == void)
&& is(typeof((R r) => r.popFront));

Expand Down

0 comments on commit be9ad6a

Please sign in to comment.