[Issue 12199] RedBlackTree problematic with non-string predicates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 22 10:55:47 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12199
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #1 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-22 10:55:43 PST ---
Yes, the unit tests are quite horrible, but easy to fix.
Unfortunately, this is blocked by Issue 12225 because of this:
auto redBlackTree(bool allowDuplicates, E)(E[] elems...)
auto redBlackTree(alias less, E)(E[] elems...)
Unexpectedly, passing the predicate as a function matches the first overload,
and tries to call the predicate with no arguments to evaluate it as a bool,
instead of just matching to alias!
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list