digitalmars.D.bugs - [Issue 5170] New: std.algorithm.copy "works" for non-assignable ranges
- d-bugmail puremagic.com (29/29) Nov 05 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5170
- d-bugmail puremagic.com (10/10) Jan 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5170
- d-bugmail puremagic.com (11/11) Apr 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5170
http://d.puremagic.com/issues/show_bug.cgi?id=5170 Summary: std.algorithm.copy "works" for non-assignable ranges Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com The following code compiles and runs (??????) import std.algorithm; struct DummyRange { int front() { return 1; } void popFront() {} enum bool empty = false; } void main() { auto arr = [1,2,3]; DummyRange dummyRange; copy(arr, dummyRange); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 05 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5170 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5170 David Simcha <dsimcha yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED This one looks to have been fixed a long time ago but never closed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 12 2011