To use the C++ code in Objective-C, we can implement C++ class in pure C++. When using those C++ classes in Objective-C, any file having C++ types must have the extension of ".mm". Thus it seems not suitable to include C++ headers in Objective-C headers, although they are all ".h" files.
No comments:
Post a Comment