mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
joiner() should only require an input range
The template constraint for std.algorithm.joiner(r, sep) required a forward range, when an input range would suffice. The one-argument version of joiner() did not have this problem.
This commit is contained in:
parent
3b628aeb50
commit
ae3cea46fd
1 changed files with 1 additions and 1 deletions
|
@ -2159,7 +2159,7 @@ assert(equal(joiner(["Mary", "has", "a", "little", "lamb"], "..."),
|
|||
----
|
||||
*/
|
||||
auto joiner(RoR, Separator)(RoR r, Separator sep)
|
||||
if (isForwardRange!RoR && isInputRange!(ElementType!RoR)
|
||||
if (isInputRange!RoR && isInputRange!(ElementType!RoR)
|
||||
&& isForwardRange!Separator
|
||||
&& is(ElementType!Separator : ElementType!(ElementType!RoR)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue