Skip to content

Commit

Permalink
convert RefArray: add new RefArray type signature (#390)
Browse files Browse the repository at this point in the history
seems to be needed for julia nightly
  • Loading branch information
benlorenz authored Nov 1, 2023
1 parent 952a584 commit a80510a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CxxWrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ Base.unsafe_convert(to_type::Type{<:CxxBaseRef}, v::Base.RefValue) = to_type(poi

Base.cconvert(::Type{CxxPtr{CxxPtr{CxxChar}}}, v::Vector{String}) = Base.cconvert(Ptr{Ptr{Cchar}}, v)
Base.unsafe_convert(to_type::Type{CxxPtr{CxxPtr{CxxChar}}}, a::Base.RefArray{Ptr{Int8}, Vector{Ptr{Int8}}, Any}) = to_type(Base.unsafe_convert(Ptr{Ptr{Cchar}}, a))
Base.unsafe_convert(to_type::Type{CxxPtr{CxxPtr{CxxChar}}}, a::Base.RefArray{Ptr{Int8}, Vector{Ptr{Int8}}, Vector{Any}}) = to_type(Base.unsafe_convert(Ptr{Ptr{Cchar}}, a))

cxxconvert(to_type::Type{<:CxxBaseRef{T}}, x, ::Type{IsNormalType}) where {T} = Ref{T}(convert(T,x))
cxxconvert(to_type::Type{<:CxxBaseRef{T}}, x::Base.RefValue, ::Type{IsNormalType}) where {T} = x
Expand Down

0 comments on commit a80510a

Please sign in to comment.