Skip to content

Commit

Permalink
Fix an additional ambiguity in SortedDict constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmsquire committed Feb 22, 2017
1 parent b48041f commit 6303813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sorted_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ end
## Take pairs and infer argument
## types. Note: this works only for the Forward ordering.

function SortedDict{K,D}(ps::Pair{K,D}...)
function SortedDict{K,D}(p1::Pair{K,D}, ps::Pair{K,D}...)
h = SortedDict{K,D,ForwardOrdering}()
h[p1.first] = p1.second
for p in ps
h[p.first] = p.second
end
Expand Down

0 comments on commit 6303813

Please sign in to comment.