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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -