No type named initializer_list in namespace std


#1

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
 


#2

See : http://www.juce.com/forum/topic/bouncingballwavetabledemo-xcode

Rail


#3

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.


#4

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


#5

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 http://en.cppreference.com/w/cpp/utility/initializer_list with Xcode 5.1.1 and 10.7 to ensure it works okay.

Rail


#6

Did you test with the latest tip? Jules submitted a fix for this issue earlier today (https://github.com/julianstorer/JUCE/commit/aa1cbafd1071bb10eff748f823a31a2ff31a956b)


#7

Yes, I tested with both commits.

Rail