Thread overview
[Issue 18634] std.container.rbtree does not work with delegate comparators
Mar 19, 2018
Seb
March 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18634

viktor.ivanov@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P5
            Summary|RBTree does not work with   |std.container.rbtree does
                   |delegate comparators        |not work with delegate
                   |                            |comparators

--
March 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18634

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12@gmail.com

--- Comment #1 from Seb <greensunny12@gmail.com> ---
PR https://github.com/dlang/phobos/pull/6304

(it's a good practice to mention/link the PR to avoid duplicate work)

--
March 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18634

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a3f8992766b1baf4d4dd2d57043a734db29c221b Fix issue 18634 - support for delegate comparators in rbtree

RedBlackTree.opEquals() was preventing the use of delegates by
explicitly forcing the equal() check to go through a function.

https://github.com/dlang/phobos/commit/63397e57a95c33dd3f8207822cff34bbabbbcfd4 Merge pull request #6304 from chvor/rbtree-delegate

Fix issue 18634 - support for delegate comparators in rbtree merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>

--
March 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18634

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--