In 6.0.2 on macOS, the assertion in TestAKBindings that AK.StringView.self models CxxSequenceType passes.
On a swiftly install of main-snapshot-2024-10-30
on linux, this assertion fails.
The check can probably be ignored for now, but it would be nice to use StringView as a read-only container in swift in the future.
import AK
protocol ConformanceMarker {}
enum CxxSequenceMarker<T: ~Copyable> {}
extension CxxSequenceMarker: ConformanceMarker where T: CxxSequence {}
private func isCxxSequenceType<T: ~Copyable>(_ type: borrowing T.Type) -> Bool {
return CxxSequenceMarker<T>.self is ConformanceMarker.Type
}
@main
struct Test {
static func main() {
precondition(isCxxSequence(AK.StringView.self))
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too