[stdlib] Indexing model: nix RangeOfStrideable

Instead, use CountableRange which is constrained to have a Strideable
Bound whose Stride conforms to Integer.
This commit is contained in:
Dave Abrahams
2016-03-28 15:55:18 -07:00
parent 25baede4bb
commit a5c3c63c3d
29 changed files with 162 additions and 147 deletions

View File

@@ -52,7 +52,7 @@ extension UTF32 : TestableUnicodeCodec {
}
// The valid ranges of Unicode scalar values
var unicodeScalarRanges: [Range<UInt32>] = [UInt32(0)...0xd7ff, 0xe000...0x10ffff]
var unicodeScalarRanges: [CountableClosedRange<UInt32>] = [UInt32(0)...0xd7ff, 0xe000...0x10ffff]
var unicodeScalarCount: Int {
var count = 0