Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-4753] SE-0147 moved UnsafeMutablePointer.initialize(from:) to UnsafeMutableBufferPointer. Shouldn't ManagedBuffer follow suit? #47330

Open
swift-ci opened this issue May 1, 2017 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. feature A feature request or implementation standard library Area: Standard library umbrella

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented May 1, 2017

Previous ID SR-4753
Radar None
Original Reporter nathanlanza (JIRA User)
Type Bug
Environment

Any

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, LanguageFeatureRequest
Assignee None
Priority Medium

md5: c5ec0ab3c8e0c8a01962048602e6ff66

Issue Description:

SE-0147: https://github.com/apple/swift-evolution/blob/master/proposals/0147-move-unsafe-initialize-from.md

`ManagedBuffer` has `withUnsafeMutablePointerToElements` which can no longer use this `initialize(from🙂` method yet is very relevant to the typical `ManagedBuffer` usage.

I believe `ManagedBuffer` should now include something along the lines of `withUnsafeMutableBufferPointerToElements` to work with this change.

@belkadan
Copy link
Contributor

belkadan commented May 2, 2017

cc @dabrahams

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. feature A feature request or implementation standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants