You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be enough to just check for isempty(v) before calling CxxRef here
functionStdVector(v::Vector{T}) where {T}
if (CxxWrapCore.cpp_trait_type(T) == CxxWrapCore.IsCxxType)
returnStdVector(CxxRef.(v))
end
result =StdVector{T}()
append(result, v)
return result
end
The text was updated successfully, but these errors were encountered:
I think the root issue is that broadcasting
CxxRef
over an empty vector loses the type infoMWE using
StdString
, but in practice it's any user-defined wrapped C++ typeIt may be enough to just check for
isempty(v)
before callingCxxRef
hereThe text was updated successfully, but these errors were encountered: