Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BinaryMaxHeap type alias #687

Merged
merged 2 commits into from
Oct 3, 2020
Merged

Fix BinaryMaxHeap type alias #687

merged 2 commits into from
Oct 3, 2020

Conversation

oxinabox
Copy link
Member

Fixed #686

Would be cleaner if we had JuliaLang/julia#37822

@@ -50,9 +50,15 @@ BinaryHeap(ordering::Base.Ordering, xs::AbstractVector{T}) where T = BinaryHeap{
BinaryHeap{T, O}() where {T, O<:Base.Ordering} = BinaryHeap{T}(O())
BinaryHeap{T, O}(xs::AbstractVector) where {T, O<:Base.Ordering} = BinaryHeap{T}(O(), xs)

const BasicReverseOrdering = Base.ReverseOrdering{Base.ForwardOrdering}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel too strongly, but how about DefaultReverseOrdering?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@oxinabox oxinabox merged commit 353a340 into master Oct 3, 2020
@oxinabox oxinabox deleted the ox/misingheapconstructor branch October 3, 2020 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BinaryMaxHeap{Int64}() isa BinaryMaxHeap{Int64} == false
2 participants