[Issue 5786] std.algorithm.sort does not work with std.container.Array: Range violation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 27 05:46:02 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5786
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kennytm at gmail.com
Version|unspecified |D2
--- Comment #1 from kennytm at gmail.com 2011-03-27 05:42:36 PDT ---
The function which emits the error is
T moveAt(size_t i)
{
i += _a;
enforce(i < _b && !empty);
return move(_outer._data._payload[_a + i]); // <---
}
That line should really read
return move(_outer._data._payload[i]);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list