     private var updateFrequency: LocationUpdateFrequency {
         let allUpdateFrequencies = allLocationListeners.map({ $0.request.updateFrequency })
 
-        guard let value = allUpdateFrequencies.maxElement({ $0.rawValue < $1.rawValue }) else {
+        guard let value = allUpdateFrequencies.maxElement(<) else {
             return .ChangesOnly
         }
 

    case Best
}

/**
Callback frequency setting. Lowest power consumption is achieved by combining LocationUpdateFrequency.ChangesOnly
 with LocationAccuracy.Coarse

public enum LocationUpdateFrequency: Int {
    case ChangesOnly
    case Continuous
}

private func < (lhs: LocationUpdateFrequency, rhs: LocationUpdateFrequency) -> Bool {
    return lhs.rawValue < rhs.rawValue
}

public enum LocationAuthorization {
