Skip to content

Commit

Permalink
better type dispatching
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 11, 2018
1 parent 4427686 commit 2d37c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saving.jl
Expand Up @@ -14,7 +14,7 @@ end
Return `SavedValues{tType, savevalType}` with empty storage vectors.
"""
function SavedValues(tType::DataType, savevalType::DataType)
function SavedValues(::Type{tType}, ::Type{savevalType}) where {tType,savevalType}
SavedValues{tType, savevalType}(Vector{tType}(), Vector{savevalType}())
end

Expand Down

0 comments on commit 2d37c74

Please sign in to comment.