We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11f24ca + 737507e commit 59bb4cbCopy full SHA for 59bb4cb
stdlib/public/Cxx/String.swift
@@ -22,5 +22,6 @@ extension std.string {
22
extension String {
23
public init(cxxString: std.string) {
24
self.init(cString: cxxString.c_str())
25
+ withExtendedLifetime(cxxString) {}
26
}
27
0 commit comments