orlandos-nl / BSON

Native Swift library for BSON (http://bsonspec.org)
https://orlandos.nl/docs/mongokitten/articles/bson
MIT License
109 stars 35 forks source link

Doesn't compile using Swift 4.2 compiler #50

Closed markltownsend closed 5 years ago

markltownsend commented 6 years ago

Still have to set the Swift version to 3.2 when running in Xcode10 and Swift 4.2. Have a warning that Swift 3 mode is deprecated. I tried the latest version of 5.2.4 without the Swift 3 mode, and it fails to compile. Attached a screen snippet of the compiler error.

image

Joannis commented 6 years ago

Thanks for reporting. We're using Swift 4.2 with no problems, but these are luckily very easy things to solve :)

markltownsend commented 5 years ago

Fixed with PR https://github.com/OpenKitten/BSON/pull/56. Hopefully this could be made into a v5.2.5