What are some quirks / surprises using .mm files in Objective-C?

I want to use some C ++ STL collections in my Objective-C iPhone app. This seems to be possible by providing the files with the extension ".mm". What are some of the quirks / surprises associated with this?

I want to use basic containers that I am familiar with (vector, queue, set, ...)

Hurrah!

+5
source share
4 answers

. ++ Objective-C , . , . , ++ Objective-C , ++ Objective-C, ++ , Objective-C.

+7

Objective-C ++ , -fobjc-call-cxx-cdtors g++, ++ ObjC. , .

+4

Objective-C ++, g++, gcc, , , , . Objective-C , , Objective-C ++. , Objective-C Objective-C ++, ++ (, "id" ).

+2

, . , Obj-C ++ .mm.

+1

All Articles