Use C ++ template class from object file c

I would like to use a C ++ class in a c object application. How to achieve this?

Thanks for the help:)

+3
source share
1 answer

You can do this using "Objective-C ++". You should read the Apple documentation , but in the short version you can mix C ++ and Objective-C in files with the extension ".mm". This is not magic (C ++ classes and Objective-C classes are still separate things), but now you can use them in the same code.

+4
source

Source: https://habr.com/ru/post/1733412/


All Articles