mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
C++ `operator bool()` is currently imported into Swift as `__convertToBool()`, which shouldn't be used by clients directly. This adds a new protocol into the C++ stdlib overlay: `CxxConvertibleToBool`, along with an intitializer for `Swift.Bool` taking an instance of `CxxConvertibleToBool`. rdar://115074954
938 B
938 B