Browse Source

Merge pull request #16 from cnoon/master

Fixed compiler error on Xcode 6.1 for NilLiteralConvertible protocol conformance.
Jonas Budelmann 11 years ago
parent
commit
068c440dd1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Snappy/ConstraintAttributes.swift

+ 3 - 0
Snappy/ConstraintAttributes.swift

@@ -38,6 +38,9 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType {
     internal init(_ rawValue: UInt) {
         self.init(rawValue: rawValue)
     }
+    internal init(nilLiteral: ()) {
+        self.rawValue = 0
+    }
     
     internal private(set) var rawValue: UInt
     internal static var allZeros: ConstraintAttributes { return self(0) }