No, you’ll have to wrap it in a class. That said, class references from a
struct are frowned upon, as you may wind up sharing mutable state (which
structs are meant to combat).
What’re you trying to represent with the UnsafeMutablePointer? A connection
handle?
Dan
> On May 20, 2016, at 12:5
Can I put an UnsafeMutablePointer inside a struct and destroy deallocate
correctly without nesting a class which has `deinit`? I’m not sure how to check
this.
--
Adrian Zubarev
Sent with Airmail
___
swift-users mailing list
swift-users@swift.org
https