swift - Cannot invoke initializer for type 'sqlite3_destructor_type' -
so far answer martin r has worked perfectly. starting swift2 raises error
cannot invoke initializer type 'sqlite3_destructor_type' argument list of type '(copaquepointer)'
in lines:
private let sqlite_static = sqlite3_destructor_type(copaquepointer(bitpattern: 0)) // https://stackoverflow.com/a/26884081/1271826 private let sqlite_transient = sqlite3_destructor_type(copaquepointer(bitpattern: -1))
taken github post provided courtesy of @martinr answer is
internal let sqlite_static = unsafebitcast(0, sqlite3_destructor_type.self) internal let sqlite_transient = unsafebitcast(-1, sqlite3_destructor_type.self)
Comments
Post a Comment