[Issue 16342] std.algorithm.fill can't fill a char[]?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 31 13:28:27 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16342
b2.temp at gmx.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
Hardware|x86_64 |All
OS|Linux |All
--- Comment #1 from b2.temp at gmx.com ---
front(char[]) is not assignable, it's not a reference. If you look at the
contraint,
"range.front = value "
must be compilable. front(char[]) is not assignable because it decodes an
undetermined amount of bytes.
That said there's no valid reason to disallow to fill with a char since it can
fill exactly array.length times the array.
--
More information about the Digitalmars-d-bugs
mailing list