Bug 11838 – Missing emplace import for std.range.zip?

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-12-28T11:26:00Z
Last change time
2013-12-30T08:09:07Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-12-28T11:26:53Z
import std.range: zip; void main() { zip([1], [2]); } With the latest dmd 2.065alpha I am seeing many errors like: ...\dmd2\src\phobos\std\range.d(4684): Error: undefined identifier emplace, did you mean template replace(E, R1, R2)(E[] subject, R1 from, R2 to) if (isDynamicArray!(E[]) && isForwardRange!R1 && isForwardRange!R2 && (hasLength!R2 || isSomeString!R2))? ...\dmd2\src\phobos\std\range.d(4684): Error: undefined identifier emplace, did you mean template replace(E, R1, R2)(E[] subject, R1 from, R2 to) if (isDynamicArray!(E[]) && isForwardRange!R1 && isForwardRange!R2 && (hasLength!R2 || isSomeString!R2))?
Comment #1 by k.hara.pg — 2013-12-30T04:58:02Z
Comment #2 by github-bugzilla — 2013-12-30T05:45:20Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/07e2349cef191d7d110595806572fef6ba16f891 fix Issue 11838 - Missing emplace import for std.range.zip? https://github.com/D-Programming-Language/phobos/commit/41412d4659935ed86a344d84de4ee303bb542e6d Merge pull request #1825 from 9rnsr/fix_imports [REG2.066a] Issue 11838 - Missing emplace import for std.range.zip?