Skip to content

Commit

Permalink
use NT macro instead of create_tuple for compatibility
Browse files Browse the repository at this point in the history
closes #59
  • Loading branch information
Shashi Gowda committed Jun 4, 2017
1 parent fbd4e72 commit cfcaa28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ function Base.deserialize(io::AbstractSerializer, ::Type{NTType})
return Union{types...}
else
ftypes = deserialize(io)
NT = eval(:(NamedTuples.$(NamedTuples.create_tuple(fnames))))
return NT{ftypes...}
NT = Expr(:macrocall, :(NamedTuples.$(Symbol("@NT"))), fnames...)
return eval(:($NT{$ftypes...}))
end
end

Expand Down

0 comments on commit cfcaa28

Please sign in to comment.