Reputation: 6296
Does anybody know if it is possible to use the standard unique_ptr with iphone sdk? I have been looking through and it doesn't seem to exist. Perhaps the gcc version include does not support it yet?.
I know that there are a boost version that emulates the standard behaviour but I would like to use the standard if possible.
Upvotes: 2
Views: 1316
Reputation: 28688
The GCC that ships with Xcode (4.2) does not include C++11 support. Use Apple LLVM 3.0 and you'll get the C++11 support (after enabling it in your C++ Dialect setting)
Upvotes: 2
Reputation: 219185
Try Xcode 4.2. But it won't be enabled by default. Open your build settings. You need to choose under "C++ Standard Library", "libc++". Also the C++03 support for unique_ptr
is not very good. To get the best experience also choose under "C++ Language Dialect", "C++0x".
Upvotes: 2