No type named initializer_list in namespace std


Hello just saved a project and threw a bunch of errors about initializer_list.. this seems to be a C++11 issue, im on Xcode 5

Is there any change i need to do to my projects in order to build correctly ?

Thanks in advance


See :



I had these errors compiling for anything under osx 10.9. Would like to find a way to support earlier osx versions and utilise C++11 stuff. I’m now using XCode 6.1.


I fixed the errors earier today, but I couldn't see any way to use initialiser lists when targeting older versions.


By changing the Standard Library to C++11 as in that other thread I could compile for 10.7 with Xcode 5.1.1

I tested the Example code on with Xcode 5.1.1 and 10.7 to ensure it works okay.



Did you test with the latest tip? Jules submitted a fix for this issue earlier today (


Yes, I tested with both commits.