Merge pull request #16 from cnoon/master

Fixed compiler error on Xcode 6.1 for NilLiteralConvertible protocol conformance.
This commit is contained in:
Jonas Budelmann 2014-10-13 09:15:51 +13:00
commit 068c440dd1
1 changed files with 3 additions and 0 deletions

View File

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