Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum iOS version that supports c++ 0x

I have small game engine written in c++. I'm considering using some features of c++0x

What minimum version of ios required? Does the new standard comes as an additional dynamic library or is it just statically linked?

Update:

I'm planning to use lambdas, new for cycle and auto type deduction

Mooing Duck: I want both make and run.

like image 338
victor.t Avatar asked Apr 06 '12 17:04

victor.t


1 Answers

C++11 support on iOS is pretty much restricted to the Clang compiler, which has been slowly adding C++11 features over several releases. The standard library on iOS that supports C++11 is libc++, and it is dynamically linked, so new features that need standard library support are going to have minimum SDK versions. It wasn't really until iOS 5 that Apple felt comfortable saying that C++11 is supported by the compiler, but some features were available before then. Ultimately, it depends on what feature you're considering, and the simplest way to find out (since I'm not aware of any laundry list of features and which versions of iOS they work on) is simply to make a small test case and try to build it against various iOS SDK versions.

like image 85
John Calsbeek Avatar answered Oct 20 '22 00:10

John Calsbeek