Skip to content

Commit

Permalink
Fix handling of .+ and .- overload deprecation (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored Apr 14, 2017
1 parent 1664542 commit 7c399b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ Base.broadcast(::typeof(+), x::AbstractArray, v::ZeroVector) = x
Base.broadcast(::typeof(-), x::AbstractArray, v::ZeroVector) = x

if VERSION < v"0.6.0-dev.1632"
Base.:(.+)(x::AbstractArray, v::ZeroVector) = x
Base.:(.-)(x::AbstractArray, v::ZeroVector) = x
include_string("""
Base.:(.+)(x::AbstractArray, v::ZeroVector) = x
Base.:(.-)(x::AbstractArray, v::ZeroVector) = x
""")
end


Expand Down

0 comments on commit 7c399b6

Please sign in to comment.