September 27, 2013 [Issue 11129] New: multiSort doesn't work with std.container.Array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11129 Summary: multiSort doesn't work with std.container.Array Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: lomereiter@gmail.com --- Comment #0 from Artem Tarasov <lomereiter@gmail.com> 2013-09-27 02:36:25 PDT --- import std.container, std.algorithm; void main() { auto a = Array!int(1, 2, 3); multiSort!("a < b", "a < b")(a[]); } Output of DMD 2.063: ...algorithm.d(8244): Error: template std.algorithm.partition3 does not match any function template declaration. Candidates are: ...algorithm.d(7815): std.algorithm.partition3(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable, Range, E)(Range r, E pivot) if (ss == SwapStrategy.unstable && isRandomAccessRange!(Range) && hasSwappableElements!(Range) && hasLength!(Range) && is(typeof(binaryFun!(less)(r.front, pivot)) == bool) && is(typeof(binaryFun!(less)(pivot, r.front)) == bool) && is(typeof(binaryFun!(less)(r.front, r.front)) == bool)) ...algorithm.d(8244): Error: template std.algorithm.partition3(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable, Range, E)(Range r, E pivot) if (ss == SwapStrategy.unstable && isRandomAccessRange!(Range) && hasSwappableElements!(Range) && hasLength!(Range) && is(typeof(binaryFun!(less)(r.front, pivot)) == bool) && is(typeof(binaryFun!(less)(pivot, r.front)) == bool) && is(typeof(binaryFun!(less)(r.front, r.front)) == bool)) cannot deduce template function from argument types !("a < b", cast(SwapStrategy)0)(Range, int) ...algorithm.d(8244): Error: template instance partition3!("a < b", cast(SwapStrategy)0) errors instantiating template test.d(4): Error: template instance std.algorithm.multiSort!("a < b", "a < b").multiSort!(Range) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 27, 2013 [Issue 11129] multiSort doesn't work with std.container.Array | ||||
---|---|---|---|---|
| ||||
Posted in reply to Artem Tarasov | http://d.puremagic.com/issues/show_bug.cgi?id=11129 monarchdodra@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |monarchdodra@gmail.com --- Comment #1 from monarchdodra@gmail.com 2013-09-27 03:58:21 PDT --- Looks like an "hasAssignable" vs "hasSwapable" issue. On it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation