Is it possible to introduce Automatic Reference Counting (ARC) to C++?

前端 未结 9 673
时光取名叫无心
时光取名叫无心 2021-02-04 01:54

Objective C has introduced a technology called ARC to free the developer from the burden of memory management. It sounds great, I think C++ developers would be very happy if g++

9条回答
  •  借酒劲吻你
    2021-02-04 02:12

    Take a look of Qt. Qt has implemented this feature by leverage the hierarchy chain. You can new a pointer and assign a parent to it, Qt will help you to manage the memory.

提交回复
热议问题