Skip to content

Commit

Permalink
Fix std.range.Chunks trait to reject not input ranges.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sh committed Nov 14, 2012
1 parent 0d5daf7 commit 16d4fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/range.d
Expand Up @@ -6056,7 +6056,7 @@ assert(chunks.front == chunks[0]);
assert(chunks.length == 3);
---
*/
struct Chunks(Source) if(hasSlicing!Source && hasLength!Source)
struct Chunks(Source) if(isInputRange!Source && hasSlicing!Source && hasLength!Source)
{
///
this(Source source, size_t chunkSize)
Expand Down

0 comments on commit 16d4fa3

Please sign in to comment.