C++ classes as instance variables of an Objective-C class

后端 未结 5 1156
轻奢々
轻奢々 2021-02-10 06:29

I need to mix Objective-C and C++. I would like to hide all the C++ stuff inside one class and keep all the others plain Objective-C. The problem is that I want to have some C++

5条回答
  •  -上瘾入骨i
    2021-02-10 07:15

    You might find that you have problems doing this -- from what I remember of ObjectiveC++ you may find that the constructor and the destructor for your enclosed C++ object won't get called.

提交回复
热议问题