I believe Swift has implicit conversions from Array<T>
to UnsafePointer<T>
and from String
to UnsafePointer<Int8>
, UnsafePointer<UInt8>
, and UnsafePointer<Void>
. This thread enumerates all the implicit pointer conversions.
I believe Swift has implicit conversions from Array<T>
to UnsafePointer<T>
and from String
to UnsafePointer<Int8>
, UnsafePointer<UInt8>
, and UnsafePointer<Void>
. This thread enumerates all the implicit pointer conversions.