gpt4 book ai didi

xcode - Xcode Beta3 中的 CMutablePointer 和 CConstPointer 发生了什么?

转载 作者:搜寻专家 更新时间:2023-10-31 21:51:33 25 4
gpt4 key购买 nike

Xcode Beta3 中的 CMutablePointer 和 CConstPointer 发生了什么?

在 Beta2 中成功编译的代码因错误而失败:

Use of undeclared type 'CMutablePointer'

最佳答案

分别使用UnsafePointer和ConstUnsafePointer。

来自发行说明:

APIs imported from C that use C pointers are now imported with a much simpler API type structure which is more predictable, preserves const mutability in more cases, and preserves __autoreleased pointer information.  Now you will see UnsafePointer, ConstUnsafePointer, AutoreleasingUnsafePointer, etc.  Function pointers are also imported now, and can be referenced and passed around.  However, you cannot call a C function pointer or convert a closure to C function pointer type.!

关于xcode - Xcode Beta3 中的 CMutablePointer 和 CConstPointer 发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24632588/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com