[SR-3679] withUnsafeBytes
and withUnsafePointer
should accept immutable values
#46264
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
standard library
Area: Standard library umbrella
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
Additional Detail from JIRA
md5: 42861c4d881483879a442cc672e04591
Issue Description:
`withUnsafeBytes` and `withUnsafePointer` should work with `let` values. You can already do this today manually:
and that ought to be optimizable. (In the fullness of time, with the ownership model, `value` should be come a borrowed argument in this case, but I don't think that needs to be a blocker.)
The text was updated successfully, but these errors were encountered: