Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用由 cffi 驱动的包装库 cffi,并且有一些对象需要清理。我想知道我是否可以with-smth通过将此类对象封装在具有析构函数的类中来放弃编写清理代码(或减少宏的使用)的需要。我可以这样做吗?
with-smth