Re: [swift-evolution] [swift-dev] Rebinding UnsafePointer makes it mutable

2016-09-20 Thread Andrew Trick via swift-evolution
> On Sep 19, 2016, at 11:44 PM, Dave Abrahams via swift-evolution > wrote: > > > on Mon Sep 19 2016, Andrew Trick wrote: > >>> On Sep 19, 2016, at 1:24 AM, Martin R via swift-dev >>> wrote: >>> >>> I noticed that

Re: [swift-evolution] [swift-dev] Rebinding UnsafePointer makes it mutable

2016-09-20 Thread Dave Abrahams via swift-evolution
on Mon Sep 19 2016, Andrew Trick wrote: >> On Sep 19, 2016, at 1:24 AM, Martin R via swift-dev >> wrote: >> >> I noticed that both UnsafePointer and UnsafeMutablePointer have the >> identical method >> >>public func withMemoryRebound

Re: [swift-evolution] [swift-dev] Rebinding UnsafePointer makes it mutable

2016-09-19 Thread Andrew Trick via swift-evolution
> On Sep 19, 2016, at 1:24 AM, Martin R via swift-dev > wrote: > > I noticed that both UnsafePointer and UnsafeMutablePointer have the identical > method > >public func withMemoryRebound(to: T.Type, capacity count: Int, > _ body: (UnsafeMutablePointer)