[Issue 10087] std.range.chunks problem with chunkSize = 0
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 6 19:18:37 PST 2015
https://issues.dlang.org/show_bug.cgi?id=10087
bb.temp at gmx.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bb.temp at gmx.com
Resolution|--- |FIXED
--- Comment #2 from bb.temp at gmx.com ---
> I suggest to refuse the chunkSize = 0 with a pre-condition (or worse with an
> enforce).
You have an assertion for this in Chunk ctor, so you can detect the problem
when testing.
--
More information about the Digitalmars-d-bugs
mailing list