Skip to content

Commit

Permalink
Fix method ambiguity with sort!(..., ::NOOPSortAlg)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Jun 3, 2022
1 parent 7152d54 commit 705f287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Experimental/Traversals/bfs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Base:sort!
struct NOOPSortAlg <: Base.Sort.Algorithm end
const NOOPSort = NOOPSortAlg()

sort!(x, ::Integer, ::Integer, ::NOOPSortAlg, ::Base.Sort.Ordering) = x
sort!(x::AbstractVector, ::Integer, ::Integer, ::NOOPSortAlg, ::Base.Sort.Ordering) = x

struct BFS{T<:Base.Sort.Algorithm} <: TraversalAlgorithm
sort_alg::T
Expand Down

0 comments on commit 705f287

Please sign in to comment.