digitalmars.D.bugs - [Issue 15304] New: Error about SortedRange not being nothrow in
- via Digitalmars-d-bugs (30/30) Nov 08 2015 https://issues.dlang.org/show_bug.cgi?id=15304
https://issues.dlang.org/show_bug.cgi?id=15304 Issue ID: 15304 Summary: Error about SortedRange not being nothrow in debug mode Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: bb.temp gmx.com Compile the following program with dmd '-debug' switch: --- import std.algorithm, std.container; void main() { static bool compare(P a, P b) { return a.curColumn < b.curColumn; } Array!P a = make!(Array!P); sort!compare(a[]); } struct P { int curColumn = 0; }
Nov 08 2015