When you are passing pointers through C, you should just use the correct return type, e.g. Ref{Foo{Float64}} instead of using unsafe_pointer_to_objref.
5 Likes
When you are passing pointers through C, you should just use the correct return type, e.g. Ref{Foo{Float64}} instead of using unsafe_pointer_to_objref.